Michael Stefaniuc : atl: Use IS_INTRESOURCE not HIWORD to check a resource.

Alexandre Julliard julliard at winehq.org
Mon Feb 1 08:55:55 CST 2010


Module: wine
Branch: master
Commit: 8a3ed2dffcdc9fc732edca40d5c54aa01279698f
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=8a3ed2dffcdc9fc732edca40d5c54aa01279698f

Author: Michael Stefaniuc <mstefani at redhat.de>
Date:   Fri Jan 29 21:29:00 2010 +0100

atl: Use IS_INTRESOURCE not HIWORD to check a resource.

---

 dlls/atl/atl_ax.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/dlls/atl/atl_ax.c b/dlls/atl/atl_ax.c
index da595a4..2afc746 100644
--- a/dlls/atl/atl_ax.c
+++ b/dlls/atl/atl_ax.c
@@ -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 );




More information about the wine-cvs mailing list