opengl32/tests: Compile with -D__WINESRC__.

This commit is contained in:
Michael Stefaniuc 2013-10-16 23:01:49 +02:00 committed by Alexandre Julliard
parent cb194006e9
commit 443f62d2f7
2 changed files with 7 additions and 8 deletions

View file

@ -1,6 +1,5 @@
TESTDLL = opengl32.dll
IMPORTS = opengl32 user32 gdi32
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
opengl.c

View file

@ -303,8 +303,8 @@ static void test_setpixelformat(HDC winhdc)
else ok(!res, "Unexpectedly set an alternate pixel format\n");
}
hwnd = CreateWindow("static", "Title", WS_OVERLAPPEDWINDOW,
10, 10, 200, 200, NULL, NULL, NULL, NULL);
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW, 10, 10, 200, 200, NULL, NULL,
NULL, NULL);
ok(hwnd != NULL, "err: %d\n", GetLastError());
if (hwnd)
{
@ -323,8 +323,8 @@ static void test_setpixelformat(HDC winhdc)
DestroyWindow( hwnd );
}
hwnd = CreateWindow("static", "Title", WS_OVERLAPPEDWINDOW,
10, 10, 200, 200, NULL, NULL, NULL, NULL);
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW, 10, 10, 200, 200, NULL, NULL,
NULL, NULL);
ok(hwnd != NULL, "err: %d\n", GetLastError());
if (hwnd)
{
@ -755,7 +755,7 @@ static void test_deletecontext(HWND hwnd, HDC hdc)
*/
thread_params.hglrc = hglrc;
thread_params.hwnd = hwnd;
thread_params.test_finished = CreateEvent(NULL, FALSE, FALSE, NULL);
thread_params.test_finished = CreateEventW(NULL, FALSE, FALSE, NULL);
thread_handle = CreateThread(NULL, 0, wgl_thread, &thread_params, 0, &tid);
ok(!!thread_handle, "Failed to create thread, last error %#x.\n", GetLastError());
if(thread_handle)
@ -1620,8 +1620,8 @@ START_TEST(opengl)
0, 0, 0 /* layer masks */
};
hwnd = CreateWindow("static", "Title", WS_OVERLAPPEDWINDOW,
10, 10, 200, 200, NULL, NULL, NULL, NULL);
hwnd = CreateWindowA("static", "Title", WS_OVERLAPPEDWINDOW, 10, 10, 200, 200, NULL, NULL,
NULL, NULL);
ok(hwnd != NULL, "err: %d\n", GetLastError());
if (hwnd)
{