atl: Use IS_INTRESOURCE not HIWORD to check a resource.

This commit is contained in:
Michael Stefaniuc 2010-01-29 21:29:00 +01:00 committed by Alexandre Julliard
parent 32ea7ce1a7
commit 8a3ed2dffc
1 changed files with 1 additions and 1 deletions

View File

@ -1208,7 +1208,7 @@ HWND WINAPI AtlAxCreateDialogA(HINSTANCE hInst, LPCSTR name, HWND owner, DLGPROC
int length;
WCHAR *nameW;
if ( HIWORD(name) == 0 )
if (IS_INTRESOURCE(name))
return AtlAxCreateDialogW( hInst, (LPCWSTR) name, owner, dlgProc, param );
length = MultiByteToWideChar( CP_ACP, 0, name, -1, NULL, 0 );