Commit a17abf8d authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

d3d9/tests: Use explicit A calls.

parent 3528393d
TESTDLL = d3d9.dll
IMPORTS = user32
EXTRADEFS = -U__WINESRC__ -DWINE_STRICT_PROTOTYPES -DWINE_NO_NAMELESS_EXTENSION -DWIDL_C_INLINE_WRAPPERS
C_SRCS = \
d3d9ex.c \
......
......@@ -40,15 +40,14 @@ static HRESULT (WINAPI *pDirect3DCreate9Ex)(UINT SDKVersion, IDirect3D9Ex **d3d9
static HWND create_window(void)
{
WNDCLASS wc = {0};
HWND ret;
wc.lpfnWndProc = DefWindowProc;
WNDCLASSA wc = {0};
wc.lpfnWndProc = DefWindowProcA;
wc.lpszClassName = "d3d9_test_wc";
RegisterClass(&wc);
RegisterClassA(&wc);
ret = CreateWindow("d3d9_test_wc", "d3d9_test",
WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION , 0, 0, 640, 480, 0, 0, 0, 0);
return ret;
return CreateWindowA("d3d9_test_wc", "d3d9_test", WS_MAXIMIZE | WS_VISIBLE | WS_CAPTION,
0, 0, 640, 480, 0, 0, 0, 0);
}
static IDirect3DDevice9Ex *create_device(HWND device_window, HWND focus_window, BOOL windowed)
......
......@@ -27,13 +27,13 @@ static DWORD texture_stages;
static HWND create_window(void)
{
WNDCLASS wc = {0};
wc.lpfnWndProc = DefWindowProc;
WNDCLASSA wc = {0};
wc.lpfnWndProc = DefWindowProcA;
wc.lpszClassName = "d3d9_test_wc";
RegisterClass(&wc);
RegisterClassA(&wc);
return CreateWindow("d3d9_test_wc", "d3d9_test",
0, 0, 0, 0, 0, 0, 0, 0, 0);
return CreateWindowA("d3d9_test_wc", "d3d9_test", 0,
0, 0, 0, 0, 0, 0, 0, 0);
}
static HRESULT init_d3d9(
......
......@@ -29,13 +29,13 @@ static HMODULE d3d9_handle = 0;
static HWND create_window(void)
{
WNDCLASS wc = {0};
wc.lpfnWndProc = DefWindowProc;
WNDCLASSA wc = {0};
wc.lpfnWndProc = DefWindowProcA;
wc.lpszClassName = "d3d9_test_wc";
RegisterClass(&wc);
RegisterClassA(&wc);
return CreateWindow("d3d9_test_wc", "d3d9_test",
0, 0, 0, 0, 0, 0, 0, 0, 0);
return CreateWindowA("d3d9_test_wc", "d3d9_test", 0,
0, 0, 0, 0, 0, 0, 0, 0);
}
static IDirect3DDevice9 *init_d3d9(void)
......
......@@ -46,14 +46,14 @@ struct vec4
static HWND create_window(void)
{
WNDCLASS wc = {0};
WNDCLASSA wc = {0};
HWND ret;
wc.lpfnWndProc = DefWindowProc;
wc.lpfnWndProc = DefWindowProcA;
wc.lpszClassName = "d3d9_test_wc";
RegisterClass(&wc);
RegisterClassA(&wc);
ret = CreateWindow("d3d9_test_wc", "d3d9_test",
WS_SYSMENU | WS_POPUP , 0, 0, 640, 480, 0, 0, 0, 0);
ret = CreateWindowA("d3d9_test_wc", "d3d9_test", WS_SYSMENU | WS_POPUP,
0, 0, 640, 480, 0, 0, 0, 0);
ShowWindow(ret, SW_SHOW);
return ret;
}
......
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