IDI_APPLICATIONW does not exist on Windows. Use IDI_APPLICATION

instead and cast to LPWSTR.
Fixed type cast warnings.
This commit is contained in:
Francois Gouget 2002-09-17 00:05:34 +00:00 committed by Alexandre Julliard
parent 5e5f7bbb02
commit 71f8fc27e5
2 changed files with 4 additions and 5 deletions

View File

@ -52,8 +52,8 @@ BOOL ClassTest(HINSTANCE hInstance, BOOL global)
cls.cbClsExtra = NUMCLASSWORDS*sizeof(DWORD);
cls.cbWndExtra = 12;
cls.hInstance = hInstance;
cls.hIcon = LoadIconW (0, IDI_APPLICATIONW);
cls.hCursor = LoadCursorW (0, IDC_ARROWW);
cls.hIcon = LoadIconW (0, (LPWSTR)IDI_APPLICATION);
cls.hCursor = LoadCursorW (0, (LPWSTR)IDC_ARROW);
cls.hbrBackground = GetStockObject (WHITE_BRUSH);
cls.lpszMenuName = 0;
cls.lpszClassName = className;
@ -79,8 +79,7 @@ BOOL ClassTest(HINSTANCE hInstance, BOOL global)
CW_USEDEFAULT, 0, CW_USEDEFAULT, 0, 0,
0, hInstance, 0);
ok(hTestWnd,
"Failed to create window");
ok(hTestWnd!=0, "Failed to create window");
/* test initial values of valid classwords */
for(i=0; i<NUMCLASSWORDS; i++)

View File

@ -67,7 +67,7 @@ typedef struct test_params
int sock_type;
int sock_prot;
char *inet_addr;
int inet_port;
short inet_port;
int chunk_size;
int n_chunks;
int n_clients;