Dmitry Timoshkov : wineboot: Fix Win64 warnings.
Alexandre Julliard
julliard at winehq.org
Wed Apr 9 14:31:29 CDT 2008
Module: wine
Branch: master
Commit: b9f78daf71e5411c33495838314aead8515d563a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b9f78daf71e5411c33495838314aead8515d563a
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date: Wed Apr 9 21:23:06 2008 +0900
wineboot: Fix Win64 warnings.
---
programs/wineboot/wineboot.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
index 859e91f..5ea0f8d 100644
--- a/programs/wineboot/wineboot.c
+++ b/programs/wineboot/wineboot.c
@@ -637,7 +637,6 @@ static BOOL ProcessStartupItems(void)
{
BOOL ret = FALSE;
HRESULT hr;
- int iRet;
IMalloc *ppM = NULL;
IShellFolder *psfDesktop = NULL, *psfStartup = NULL;
LPITEMIDLIST pidlStartup = NULL, pidlItem;
@@ -695,8 +694,13 @@ static BOOL ProcessStartupItems(void)
if (FAILED(hr))
WINE_TRACE("Unable to parse display name.\n");
else
- if ((iRet = (int)ShellExecuteW(NULL, NULL, wszCommand, NULL, NULL, SW_SHOWNORMAL)) <= 32)
- WINE_WARN("Error %d executing command %s.\n", iRet, wine_dbgstr_w(wszCommand));
+ {
+ HINSTANCE hinst;
+
+ hinst = ShellExecuteW(NULL, NULL, wszCommand, NULL, NULL, SW_SHOWNORMAL);
+ if (PtrToUlong(hinst) <= 32)
+ WINE_WARN("Error %p executing command %s.\n", hinst, wine_dbgstr_w(wszCommand));
+ }
}
IMalloc_Free(ppM, pidlItem);
More information about the wine-cvs
mailing list