Author: rmottola
Date: Tue Jul 12 14:54:33 2016
New Revision: 39985

URL: http://svn.gna.org/viewcvs/gnustep?rev=39985&view=rev
Log:
cast HINSTANCE to int, which is correct since MSDN docs suggest that, it is not 
a true HINSTANCE

Modified:
    libs/gui/trunk/Source/NSWorkspace.m

Modified: libs/gui/trunk/Source/NSWorkspace.m
URL: 
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWorkspace.m?rev=39985&r1=39984&r2=39985&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSWorkspace.m (original)
+++ libs/gui/trunk/Source/NSWorkspace.m Tue Jul 12 14:54:33 2016
@@ -814,7 +814,7 @@
       unichar *buffer = (unichar *)calloc(1, ([fullPath length] + 1) * 
sizeof(unichar));
       [fullPath getCharacters: buffer range: NSMakeRange(0, [fullPath 
length])];
       buffer[[fullPath length]] = 0;
-      BOOL success = (ShellExecuteW(GetDesktopWindow(), L"open", buffer, NULL, 
+      BOOL success = ((int)ShellExecuteW(GetDesktopWindow(), L"open", buffer, 
NULL, 
                                     NULL, SW_SHOWNORMAL) > 32);
       free(buffer);
       return success;


_______________________________________________
Gnustep-cvs mailing list
Gnustep-cvs@gna.org
https://mail.gna.org/listinfo/gnustep-cvs

Reply via email to