Commit 8a3ed2df authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

atl: Use IS_INTRESOURCE not HIWORD to check a resource.

parent 32ea7ce1
...@@ -1208,7 +1208,7 @@ HWND WINAPI AtlAxCreateDialogA(HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC ...@@ -1208,7 +1208,7 @@ HWND WINAPI AtlAxCreateDialogA(HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC
int length; int length;
WCHAR *nameW; WCHAR *nameW;
if ( HIWORD(name) == 0 ) if (IS_INTRESOURCE(name))
return AtlAxCreateDialogW( hInst, (LPCWSTR) name, owner, dlgProc, param ); return AtlAxCreateDialogW( hInst, (LPCWSTR) name, owner, dlgProc, param );
length = MultiByteToWideChar( CP_ACP, 0, name, -1, NULL, 0 ); length = MultiByteToWideChar( CP_ACP, 0, name, -1, NULL, 0 );
......
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