Amd64/misc 64bit fixes (#236)
[reactos.git] / modules / rosapps / applications / explorer-old / utility / utility.cpp
index d20c73b..9fe745e 100644 (file)
@@ -192,7 +192,7 @@ BOOL launch_file(HWND hwnd, LPCTSTR cmd, UINT nCmdShow, LPCTSTR parameters)
 
        HINSTANCE hinst = ShellExecute(hwnd, NULL/*operation*/, cmd, parameters, NULL/*dir*/, nCmdShow);
 
-       if ((int)hinst <= 32) {
+       if ((INT_PTR)hinst <= 32) {
                display_error(hwnd, GetLastError());
                return FALSE;
        }
@@ -205,7 +205,7 @@ BOOL launch_fileA(HWND hwnd, LPSTR cmd, UINT nCmdShow, LPCSTR parameters)
 {
        HINSTANCE hinst = ShellExecuteA(hwnd, NULL/*operation*/, cmd, parameters, NULL/*dir*/, nCmdShow);
 
-       if ((int)hinst <= 32) {
+       if ((INT_PTR)hinst <= 32) {
                display_error(hwnd, GetLastError());
                return FALSE;
        }
@@ -387,7 +387,7 @@ BOOL launch_cpanel(HWND hwnd, LPCTSTR applet)
        _tcscpy(parameters, TEXT("shell32.dll,Control_RunDLL "));
        _tcscat(parameters, applet);
 
-       return ((int)ShellExecute(hwnd, TEXT("open"), TEXT("rundll32.exe"), parameters, NULL, SW_SHOWDEFAULT) > 32);
+       return ((INT_PTR)ShellExecute(hwnd, TEXT("open"), TEXT("rundll32.exe"), parameters, NULL, SW_SHOWDEFAULT) > 32);
 }