Commit c30102b4 authored by Steve Lhomme's avatar Steve Lhomme

win32: use the VLC ARRAY_SIZE macro

Rather than the windows ARRAYSIZE() which ends up as sizeof(*RtlpNumberOf(A))
mostly for C++.
parent 889fbe9a
......@@ -206,7 +206,7 @@ static HINSTANCE Direct3D9LoadShaderLibrary(void)
HINSTANCE instance = NULL;
for (int i = 43; i > 23; --i) {
WCHAR filename[16];
_snwprintf(filename, ARRAYSIZE(filename), TEXT("D3dx9_%d.dll"), i);
_snwprintf(filename, ARRAY_SIZE(filename), TEXT("D3dx9_%d.dll"), i);
instance = LoadLibrary(filename);
if (instance)
break;
......
......@@ -159,8 +159,8 @@ event_thread_t *EventThreadCreate( vlc_object_t *obj, vout_window_t *parent_wind
p_event->parent_window = parent_window;
_snwprintf( p_event->class_video, ARRAYSIZE(p_event->class_video),
TEXT("VLC video output %p"), (void *)p_event );
_snwprintf( p_event->class_video, ARRAY_SIZE(p_event->class_video),
TEXT("VLC video output %p"), (void *)p_event );
return p_event;
}
......
......@@ -713,7 +713,7 @@ static int Open(vout_window_t *wnd)
if (unlikely(sys == NULL))
return VLC_ENOMEM;
_snwprintf( sys->class_main, ARRAYSIZE(sys->class_main),
_snwprintf( sys->class_main, ARRAY_SIZE(sys->class_main),
TEXT("VLC standalone window %p"), (void *)sys );
HINSTANCE hInstance = GetModuleHandle(NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment