Commit 95a173a5 authored by Kevin Koltzau's avatar Kevin Koltzau Committed by Alexandre Julliard

Fix warnings in 64bit.

parent dacea646
...@@ -158,7 +158,7 @@ void COMDLG32_SetCommDlgExtendedError(DWORD err) ...@@ -158,7 +158,7 @@ void COMDLG32_SetCommDlgExtendedError(DWORD err)
if (COMDLG32_TlsIndex == TLS_OUT_OF_INDEXES) if (COMDLG32_TlsIndex == TLS_OUT_OF_INDEXES)
COMDLG32_TlsIndex = TlsAlloc(); COMDLG32_TlsIndex = TlsAlloc();
if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES)
TlsSetValue(COMDLG32_TlsIndex, (void *)err); TlsSetValue(COMDLG32_TlsIndex, (LPVOID)(DWORD_PTR)err);
else else
FIXME("No Tls Space\n"); FIXME("No Tls Space\n");
} }
...@@ -176,7 +176,7 @@ void COMDLG32_SetCommDlgExtendedError(DWORD err) ...@@ -176,7 +176,7 @@ void COMDLG32_SetCommDlgExtendedError(DWORD err)
DWORD WINAPI CommDlgExtendedError(void) DWORD WINAPI CommDlgExtendedError(void)
{ {
if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES) if (COMDLG32_TlsIndex != TLS_OUT_OF_INDEXES)
return (DWORD)TlsGetValue(COMDLG32_TlsIndex); return (DWORD_PTR)TlsGetValue(COMDLG32_TlsIndex);
else else
return 0; /* we never set an error, so there isn't one */ return 0; /* we never set an error, so there isn't one */
} }
...@@ -1303,7 +1303,7 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol ) ...@@ -1303,7 +1303,7 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol )
} }
bRet = DialogBoxIndirectParamW(COMDLG32_hInstance, template, lpChCol->hwndOwner, bRet = DialogBoxIndirectParamW(COMDLG32_hInstance, template, lpChCol->hwndOwner,
ColorDlgProc, (DWORD)lpChCol); ColorDlgProc, (LPARAM)lpChCol);
return bRet; return bRet;
} }
......
...@@ -1091,7 +1091,7 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l ...@@ -1091,7 +1091,7 @@ INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM l
stringId = 0; stringId = 0;
} }
lpdi->hinst = COMDLG32_hInstance; lpdi->hinst = COMDLG32_hInstance;
lpdi->lpszText = (LPSTR) stringId; lpdi->lpszText = MAKEINTRESOURCEA(stringId);
} }
return FALSE; return FALSE;
} }
...@@ -2378,7 +2378,7 @@ static HRESULT FILEDLG95_FILETYPE_Init(HWND hwnd) ...@@ -2378,7 +2378,7 @@ static HRESULT FILEDLG95_FILETYPE_Init(HWND hwnd)
lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB, lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB,
nFilterIndexCB); nFilterIndexCB);
if ((INT)lpstrFilter == CB_ERR) /* control is empty */ if ((INT_PTR)lpstrFilter == CB_ERR) /* control is empty */
lpstrFilter = NULL; lpstrFilter = NULL;
if(lpstrFilter) if(lpstrFilter)
...@@ -2423,7 +2423,7 @@ static BOOL FILEDLG95_FILETYPE_OnCommand(HWND hwnd, WORD wNotifyCode) ...@@ -2423,7 +2423,7 @@ static BOOL FILEDLG95_FILETYPE_OnCommand(HWND hwnd, WORD wNotifyCode)
lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB, lpstrFilter = (LPWSTR) CBGetItemDataPtr(fodInfos->DlgInfos.hwndFileTypeCB,
iItem); iItem);
if((int)lpstrFilter != CB_ERR) if((INT_PTR)lpstrFilter != CB_ERR)
{ {
DWORD len; DWORD len;
CharLowerW(lpstrFilter); /* lowercase */ CharLowerW(lpstrFilter); /* lowercase */
......
...@@ -670,7 +670,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, ...@@ -670,7 +670,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
if (lpcf->Flags & CF_INITTOLOGFONTSTRUCT) if (lpcf->Flags & CF_INITTOLOGFONTSTRUCT)
{ {
/* look for fitting font name in combobox1 */ /* look for fitting font name in combobox1 */
j=SendDlgItemMessageW(hDlg,cmb1,CB_FINDSTRING,-1,(LONG)lpxx->lfFaceName); j=SendDlgItemMessageW(hDlg,cmb1,CB_FINDSTRING,-1,(LPARAM)lpxx->lfFaceName);
if (j!=CB_ERR) if (j!=CB_ERR)
{ {
INT height = lpxx->lfHeight < 0 ? -lpxx->lfHeight : INT height = lpxx->lfHeight < 0 ? -lpxx->lfHeight :
...@@ -699,7 +699,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam, ...@@ -699,7 +699,7 @@ LRESULT CFn_WMInitDialog(HWND hDlg, WPARAM wParam, LPARAM lParam,
} }
if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle) if ((lpcf->Flags & CF_USESTYLE) && lpcf->lpszStyle)
{ {
j=SendDlgItemMessageW(hDlg,cmb2,CB_FINDSTRING,-1,(LONG)lpcf->lpszStyle); j=SendDlgItemMessageW(hDlg,cmb2,CB_FINDSTRING,-1,(LPARAM)lpcf->lpszStyle);
if (j!=CB_ERR) if (j!=CB_ERR)
{ {
j=SendDlgItemMessageW(hDlg,cmb2,CB_SETCURSEL,j,0); j=SendDlgItemMessageW(hDlg,cmb2,CB_SETCURSEL,j,0);
......
...@@ -3157,7 +3157,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -3157,7 +3157,7 @@ PRINTDLG_PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
pda->curdlg.ptPaperSize.x = tmp; pda->curdlg.ptPaperSize.x = tmp;
} }
} else } else
WARN("GlobalLock(pda->pdlg.hDevMode) fail? hDevMode=%ld", (DWORD)pda->pdlg.hDevMode); WARN("GlobalLock(pda->pdlg.hDevMode) fail? hDevMode=%p", pda->pdlg.hDevMode);
/* Drawing paper prev */ /* Drawing paper prev */
PRINTDLG_PS_ChangePaperPrev(pda); PRINTDLG_PS_ChangePaperPrev(pda);
return TRUE; return TRUE;
......
...@@ -190,7 +190,7 @@ static char *CRYPT_GetKeyName(DWORD dwEncodingType, LPCSTR pszFuncName, ...@@ -190,7 +190,7 @@ static char *CRYPT_GetKeyName(DWORD dwEncodingType, LPCSTR pszFuncName,
*/ */
if (!HIWORD(pszOID)) if (!HIWORD(pszOID))
{ {
snprintf(numericOID, sizeof(numericOID), "#%d", (int)pszOID); snprintf(numericOID, sizeof(numericOID), "#%d", LOWORD(pszOID));
oid = numericOID; oid = numericOID;
} }
else else
......
...@@ -132,7 +132,7 @@ hex_str(unsigned char *p, int n) ...@@ -132,7 +132,7 @@ hex_str(unsigned char *p, int n)
#define TRACE_DATA_BLOB(blob) do { \ #define TRACE_DATA_BLOB(blob) do { \
TRACE("%s cbData: %u\n", #blob ,(unsigned int)((blob)->cbData)); \ TRACE("%s cbData: %u\n", #blob ,(unsigned int)((blob)->cbData)); \
TRACE("%s pbData @ 0x%x:%s\n", #blob ,(unsigned int)((blob)->pbData), \ TRACE("%s pbData @ %p:%s\n", #blob ,(blob)->pbData, \
hex_str((blob)->pbData, (blob)->cbData)); \ hex_str((blob)->pbData, (blob)->cbData)); \
} while (0) } while (0)
...@@ -778,14 +778,14 @@ static void ...@@ -778,14 +778,14 @@ static void
report(DATA_BLOB* pDataIn, DATA_BLOB* pOptionalEntropy, report(DATA_BLOB* pDataIn, DATA_BLOB* pOptionalEntropy,
CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, DWORD dwFlags) CRYPTPROTECT_PROMPTSTRUCT* pPromptStruct, DWORD dwFlags)
{ {
TRACE("pPromptStruct: 0x%x\n",(unsigned int)pPromptStruct); TRACE("pPromptStruct: %p\n", pPromptStruct);
if (pPromptStruct) if (pPromptStruct)
{ {
TRACE(" cbSize: 0x%x\n",(unsigned int)pPromptStruct->cbSize); TRACE(" cbSize: 0x%x\n",(unsigned int)pPromptStruct->cbSize);
TRACE(" dwPromptFlags: 0x%x\n",(unsigned int)pPromptStruct->dwPromptFlags); TRACE(" dwPromptFlags: 0x%x\n",(unsigned int)pPromptStruct->dwPromptFlags);
TRACE(" hwndApp: 0x%x\n",(unsigned int)pPromptStruct->hwndApp); TRACE(" hwndApp: %p\n", pPromptStruct->hwndApp);
TRACE(" szPrompt: 0x%x %s\n", TRACE(" szPrompt: %p %s\n",
(unsigned int)pPromptStruct->szPrompt, pPromptStruct->szPrompt,
pPromptStruct->szPrompt ? debugstr_w(pPromptStruct->szPrompt) pPromptStruct->szPrompt ? debugstr_w(pPromptStruct->szPrompt)
: ""); : "");
} }
...@@ -855,7 +855,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn, ...@@ -855,7 +855,7 @@ BOOL WINAPI CryptProtectData(DATA_BLOB* pDataIn,
/* debug: show our arguments */ /* debug: show our arguments */
report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags); report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags);
TRACE("\tszDataDescr: 0x%x %s\n",(unsigned int)szDataDescr, TRACE("\tszDataDescr: %p %s\n", szDataDescr,
szDataDescr ? debugstr_w(szDataDescr) : ""); szDataDescr ? debugstr_w(szDataDescr) : "");
/* Windows appears to create an empty szDataDescr instead of maintaining /* Windows appears to create an empty szDataDescr instead of maintaining
...@@ -1026,7 +1026,7 @@ BOOL WINAPI CryptUnprotectData(DATA_BLOB* pDataIn, ...@@ -1026,7 +1026,7 @@ BOOL WINAPI CryptUnprotectData(DATA_BLOB* pDataIn,
/* debug: show our arguments */ /* debug: show our arguments */
report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags); report(pDataIn,pOptionalEntropy,pPromptStruct,dwFlags);
TRACE("\tppszDataDescr: 0x%x\n",(unsigned int)ppszDataDescr); TRACE("\tppszDataDescr: %p\n", ppszDataDescr);
/* take apart the opaque blob */ /* take apart the opaque blob */
if (!unserialize(pDataIn, &protect_data)) if (!unserialize(pDataIn, &protect_data))
......
...@@ -316,7 +316,7 @@ static void FillTreeView( browse_info *info, IShellFolder * lpsf, ...@@ -316,7 +316,7 @@ static void FillTreeView( browse_info *info, IShellFolder * lpsf,
HRESULT hr; HRESULT hr;
HWND hwnd = GetParent( info->hwndTreeView ); HWND hwnd = GetParent( info->hwndTreeView );
TRACE("%p %p %x %p\n",lpsf, pidl, (INT)hParent, lpe); TRACE("%p %p %p %p\n",lpsf, pidl, hParent, lpe);
/* No IEnumIDList -> No children */ /* No IEnumIDList -> No children */
if (!lpe) return; if (!lpe) return;
......
...@@ -153,7 +153,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTA* cs) ...@@ -153,7 +153,7 @@ static void Control_WndProc_Create(HWND hWnd, const CREATESTRUCTA* cs)
{ {
CPanel* panel = (CPanel*)cs->lpCreateParams; CPanel* panel = (CPanel*)cs->lpCreateParams;
SetWindowLongA(hWnd, 0, (LPARAM)panel); SetWindowLongPtrA(hWnd, 0, (LONG_PTR)panel);
panel->status = 0; panel->status = 0;
panel->hWnd = hWnd; panel->hWnd = hWnd;
} }
...@@ -244,7 +244,7 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up) ...@@ -244,7 +244,7 @@ static LRESULT Control_WndProc_LButton(CPanel* panel, LPARAM lParam, BOOL up)
static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg, static LRESULT WINAPI Control_WndProc(HWND hWnd, UINT wMsg,
WPARAM lParam1, LPARAM lParam2) WPARAM lParam1, LPARAM lParam2)
{ {
CPanel* panel = (CPanel*)GetWindowLongA(hWnd, 0); CPanel* panel = (CPanel*)GetWindowLongPtrA(hWnd, 0);
if (panel || wMsg == WM_CREATE) { if (panel || wMsg == WM_CREATE) {
switch (wMsg) { switch (wMsg) {
......
...@@ -104,16 +104,16 @@ static HDDEDATA CALLBACK DdeCallback( ...@@ -104,16 +104,16 @@ static HDDEDATA CALLBACK DdeCallback(
switch (uType) switch (uType)
{ {
case XTYP_CONNECT: case XTYP_CONNECT:
return (HDDEDATA)Dde_OnConnect(hsz1, hsz2); return (HDDEDATA)(DWORD_PTR)Dde_OnConnect(hsz1, hsz2);
case XTYP_CONNECT_CONFIRM: case XTYP_CONNECT_CONFIRM:
Dde_OnConnectConfirm(hconv, hsz1, hsz2); Dde_OnConnectConfirm(hconv, hsz1, hsz2);
return NULL; return NULL;
case XTYP_WILDCONNECT: case XTYP_WILDCONNECT:
return (HDDEDATA)Dde_OnWildConnect(hsz1, hsz2); return (HDDEDATA)(DWORD_PTR)Dde_OnWildConnect(hsz1, hsz2);
case XTYP_REQUEST: case XTYP_REQUEST:
return (HDDEDATA)Dde_OnRequest(uFmt, hconv, hsz1, hsz2); return (HDDEDATA)Dde_OnRequest(uFmt, hconv, hsz1, hsz2);
case XTYP_EXECUTE: case XTYP_EXECUTE:
return (HDDEDATA)Dde_OnExecute(hconv, hsz1, hdata); return (HDDEDATA)(DWORD_PTR)Dde_OnExecute(hconv, hsz1, hdata);
case XTYP_DISCONNECT: case XTYP_DISCONNECT:
Dde_OnDisconnect(hconv); Dde_OnDisconnect(hconv);
return NULL; return NULL;
......
...@@ -308,12 +308,13 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath) ...@@ -308,12 +308,13 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath)
* SHGetFileInfoW [SHELL32.@] * SHGetFileInfoW [SHELL32.@]
* *
*/ */
DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes, DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
SHFILEINFOW *psfi, UINT sizeofpsfi, UINT flags ) SHFILEINFOW *psfi, UINT sizeofpsfi, UINT flags )
{ {
WCHAR szLocation[MAX_PATH], szFullPath[MAX_PATH]; WCHAR szLocation[MAX_PATH], szFullPath[MAX_PATH];
int iIndex; int iIndex;
DWORD ret = TRUE, dwAttributes = 0; DWORD_PTR ret = TRUE;
DWORD dwAttributes = 0;
IShellFolder * psfParent = NULL; IShellFolder * psfParent = NULL;
IExtractIconW * pei = NULL; IExtractIconW * pei = NULL;
LPITEMIDLIST pidlLast = NULL, pidl = NULL; LPITEMIDLIST pidlLast = NULL, pidl = NULL;
...@@ -557,9 +558,9 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes, ...@@ -557,9 +558,9 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
if (ret) if (ret)
{ {
if (flags & SHGFI_SMALLICON) if (flags & SHGFI_SMALLICON)
ret = (DWORD) ShellSmallIconList; ret = (DWORD_PTR) ShellSmallIconList;
else else
ret = (DWORD) ShellBigIconList; ret = (DWORD_PTR) ShellBigIconList;
} }
} }
...@@ -596,9 +597,9 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes, ...@@ -596,9 +597,9 @@ DWORD WINAPI SHGetFileInfoW(LPCWSTR path,DWORD dwFileAttributes,
/************************************************************************* /*************************************************************************
* SHGetFileInfoA [SHELL32.@] * SHGetFileInfoA [SHELL32.@]
*/ */
DWORD WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes, DWORD_PTR WINAPI SHGetFileInfoA(LPCSTR path,DWORD dwFileAttributes,
SHFILEINFOA *psfi, UINT sizeofpsfi, SHFILEINFOA *psfi, UINT sizeofpsfi,
UINT flags ) UINT flags )
{ {
INT len; INT len;
LPWSTR temppath; LPWSTR temppath;
...@@ -706,7 +707,7 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex ...@@ -706,7 +707,7 @@ HICON WINAPI ExtractIconW(HINSTANCE hInstance, LPCWSTR lpszFile, UINT nIconIndex
{ {
ret = PrivateExtractIconsW(lpszFile, 0, cx, cy, NULL, NULL, 0, LR_DEFAULTCOLOR); ret = PrivateExtractIconsW(lpszFile, 0, cx, cy, NULL, NULL, 0, LR_DEFAULTCOLOR);
if (ret != 0xFFFFFFFF && ret) if (ret != 0xFFFFFFFF && ret)
return (HICON)ret; return (HICON)(UINT_PTR)ret;
return NULL; return NULL;
} }
else else
......
...@@ -214,7 +214,7 @@ inline static WCHAR * __SHCloneStrAtoW(WCHAR ** target, const char * source) ...@@ -214,7 +214,7 @@ inline static WCHAR * __SHCloneStrAtoW(WCHAR ** target, const char * source)
#define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16)) #define HINSTANCE_32(h16) ((HINSTANCE)(ULONG_PTR)(h16))
#define HINSTANCE_16(h32) (LOWORD(h32)) #define HINSTANCE_16(h32) (LOWORD(h32))
typedef UINT (*SHELL_ExecuteW32)(const WCHAR *lpCmd, WCHAR *env, BOOL shWait, typedef UINT_PTR (*SHELL_ExecuteW32)(const WCHAR *lpCmd, WCHAR *env, BOOL shWait,
LPSHELLEXECUTEINFOW sei, LPSHELLEXECUTEINFOW sei_out); LPSHELLEXECUTEINFOW sei, LPSHELLEXECUTEINFOW sei_out);
BOOL WINAPI ShellExecuteExW32(LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc); BOOL WINAPI ShellExecuteExW32(LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfunc);
......
...@@ -2384,7 +2384,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici ) ...@@ -2384,7 +2384,7 @@ ShellLink_InvokeCommand( IContextMenu* iface, LPCMINVOKECOMMANDINFO lpici )
} }
static HRESULT WINAPI static HRESULT WINAPI
ShellLink_GetCommandString( IContextMenu* iface, UINT idCmd, UINT uType, ShellLink_GetCommandString( IContextMenu* iface, UINT_PTR idCmd, UINT uType,
UINT* pwReserved, LPSTR pszName, UINT cchMax ) UINT* pwReserved, LPSTR pszName, UINT cchMax )
{ {
IShellLinkImpl *This = impl_from_IContextMenu(iface); IShellLinkImpl *This = impl_from_IContextMenu(iface);
......
...@@ -355,16 +355,16 @@ int WINAPIV ShellMessageBoxW( ...@@ -355,16 +355,16 @@ int WINAPIV ShellMessageBoxW(
va_start(args, uType); va_start(args, uType);
/* wvsprintfA(buf,fmt, args); */ /* wvsprintfA(buf,fmt, args); */
TRACE("(%08lx,%08lx,%p,%p,%08x)\n", TRACE("(%p,%p,%p,%p,%08x)\n",
(DWORD)hInstance,(DWORD)hWnd,lpText,lpCaption,uType); hInstance,hWnd,lpText,lpCaption,uType);
if (!HIWORD(lpCaption)) if (IS_INTRESOURCE(lpCaption))
LoadStringW(hInstance, (DWORD)lpCaption, szTitle, sizeof(szTitle)/sizeof(szTitle[0])); LoadStringW(hInstance, LOWORD(lpCaption), szTitle, sizeof(szTitle)/sizeof(szTitle[0]));
else else
pszTitle = lpCaption; pszTitle = lpCaption;
if (!HIWORD(lpText)) if (IS_INTRESOURCE(lpText))
LoadStringW(hInstance, (DWORD)lpText, szText, sizeof(szText)/sizeof(szText[0])); LoadStringW(hInstance, LOWORD(lpText), szText, sizeof(szText)/sizeof(szText[0]));
else else
pszText = lpText; pszText = lpText;
...@@ -412,16 +412,16 @@ int WINAPIV ShellMessageBoxA( ...@@ -412,16 +412,16 @@ int WINAPIV ShellMessageBoxA(
va_start(args, uType); va_start(args, uType);
/* wvsprintfA(buf,fmt, args); */ /* wvsprintfA(buf,fmt, args); */
TRACE("(%08lx,%08lx,%p,%p,%08x)\n", TRACE("(%p,%p,%p,%p,%08x)\n",
(DWORD)hInstance,(DWORD)hWnd,lpText,lpCaption,uType); hInstance,hWnd,lpText,lpCaption,uType);
if (!HIWORD(lpCaption)) if (IS_INTRESOURCE(lpCaption))
LoadStringA(hInstance, (DWORD)lpCaption, szTitle, sizeof(szTitle)); LoadStringA(hInstance, LOWORD(lpCaption), szTitle, sizeof(szTitle));
else else
pszTitle = lpCaption; pszTitle = lpCaption;
if (!HIWORD(lpText)) if (IS_INTRESOURCE(lpText))
LoadStringA(hInstance, (DWORD)lpText, szText, sizeof(szText)); LoadStringA(hInstance, LOWORD(lpText), szText, sizeof(szText));
else else
pszText = lpText; pszText = lpText;
...@@ -1004,10 +1004,9 @@ static LPUNKNOWN SHELL32_IExplorerInterface=0; ...@@ -1004,10 +1004,9 @@ static LPUNKNOWN SHELL32_IExplorerInterface=0;
* NOTES * NOTES
* Sets the interface * Sets the interface
*/ */
HRESULT WINAPI SHSetInstanceExplorer (LPUNKNOWN lpUnknown) VOID WINAPI SHSetInstanceExplorer (LPUNKNOWN lpUnknown)
{ TRACE("%p\n", lpUnknown); { TRACE("%p\n", lpUnknown);
SHELL32_IExplorerInterface = lpUnknown; SHELL32_IExplorerInterface = lpUnknown;
return (HRESULT) lpUnknown;
} }
/************************************************************************* /*************************************************************************
* SHGetInstanceExplorer [SHELL32.@] * SHGetInstanceExplorer [SHELL32.@]
......
...@@ -1303,7 +1303,7 @@ static HRESULT _SHGetDefaultValue(BYTE folder, LPWSTR pszPath) ...@@ -1303,7 +1303,7 @@ static HRESULT _SHGetDefaultValue(BYTE folder, LPWSTR pszPath)
IS_INTRESOURCE(CSIDL_Data[folder].szDefaultPath)) IS_INTRESOURCE(CSIDL_Data[folder].szDefaultPath))
{ {
if (LoadStringW(shell32_hInstance, if (LoadStringW(shell32_hInstance,
(UINT)CSIDL_Data[folder].szDefaultPath, resourcePath, MAX_PATH)) LOWORD(CSIDL_Data[folder].szDefaultPath), resourcePath, MAX_PATH))
{ {
hr = S_OK; hr = S_OK;
pDefaultPath = resourcePath; pDefaultPath = resourcePath;
......
...@@ -334,12 +334,12 @@ static HRESULT SHELL_ResolveShortCutW(LPWSTR wcmd, LPWSTR wargs, LPWSTR wdir, HW ...@@ -334,12 +334,12 @@ static HRESULT SHELL_ResolveShortCutW(LPWSTR wcmd, LPWSTR wargs, LPWSTR wdir, HW
* SHELL_ExecuteW [Internal] * SHELL_ExecuteW [Internal]
* *
*/ */
static UINT SHELL_ExecuteW(const WCHAR *lpCmd, WCHAR *env, BOOL shWait, static UINT_PTR SHELL_ExecuteW(const WCHAR *lpCmd, WCHAR *env, BOOL shWait,
LPSHELLEXECUTEINFOW psei, LPSHELLEXECUTEINFOW psei_out) LPSHELLEXECUTEINFOW psei, LPSHELLEXECUTEINFOW psei_out)
{ {
STARTUPINFOW startup; STARTUPINFOW startup;
PROCESS_INFORMATION info; PROCESS_INFORMATION info;
UINT retval = 31; UINT_PTR retval = 31;
UINT gcdret = 0; UINT gcdret = 0;
WCHAR curdir[MAX_PATH]; WCHAR curdir[MAX_PATH];
...@@ -864,13 +864,13 @@ static unsigned dde_connect(WCHAR* key, WCHAR* start, WCHAR* ddeexec, ...@@ -864,13 +864,13 @@ static unsigned dde_connect(WCHAR* key, WCHAR* start, WCHAR* ddeexec,
/************************************************************************* /*************************************************************************
* execute_from_key [Internal] * execute_from_key [Internal]
*/ */
static UINT execute_from_key(LPWSTR key, LPCWSTR lpFile, WCHAR *env, LPCWSTR szCommandline, static UINT_PTR execute_from_key(LPWSTR key, LPCWSTR lpFile, WCHAR *env, LPCWSTR szCommandline,
SHELL_ExecuteW32 execfunc, SHELL_ExecuteW32 execfunc,
LPSHELLEXECUTEINFOW psei, LPSHELLEXECUTEINFOW psei_out) LPSHELLEXECUTEINFOW psei, LPSHELLEXECUTEINFOW psei_out)
{ {
WCHAR cmd[1024]; WCHAR cmd[1024];
LONG cmdlen = sizeof(cmd); LONG cmdlen = sizeof(cmd);
UINT retval = 31; UINT_PTR retval = 31;
cmd[0] = '\0'; cmd[0] = '\0';
...@@ -928,7 +928,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu ...@@ -928,7 +928,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
if (wDirectory) SHFree( wDirectory ); if (wDirectory) SHFree( wDirectory );
TRACE("returning %s\n", lpResult); TRACE("returning %s\n", lpResult);
return (HINSTANCE)retval; return retval;
} }
/************************************************************************* /*************************************************************************
...@@ -936,7 +936,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu ...@@ -936,7 +936,7 @@ HINSTANCE WINAPI FindExecutableA(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResu
*/ */
HINSTANCE WINAPI FindExecutableW(LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpResult) HINSTANCE WINAPI FindExecutableW(LPCWSTR lpFile, LPCWSTR lpDirectory, LPWSTR lpResult)
{ {
UINT retval = 31; /* default - 'No association was found' */ UINT_PTR retval = 31; /* default - 'No association was found' */
WCHAR old_dir[1024]; WCHAR old_dir[1024];
TRACE("File %s, Dir %s\n", TRACE("File %s, Dir %s\n",
...@@ -989,7 +989,7 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun ...@@ -989,7 +989,7 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun
WCHAR *env; WCHAR *env;
WCHAR lpstrProtocol[256]; WCHAR lpstrProtocol[256];
LPCWSTR lpFile; LPCWSTR lpFile;
UINT retval = 31; UINT_PTR retval = 31;
WCHAR wcmd[1024]; WCHAR wcmd[1024];
WCHAR buffer[MAX_PATH]; WCHAR buffer[MAX_PATH];
const WCHAR* ext; const WCHAR* ext;
...@@ -1337,7 +1337,7 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun ...@@ -1337,7 +1337,7 @@ BOOL WINAPI ShellExecuteExW32 (LPSHELLEXECUTEINFOW sei, SHELL_ExecuteW32 execfun
WCHAR lpstrTmpFile[256]; WCHAR lpstrTmpFile[256];
strcpyW(lpstrTmpFile, wHttp); strcpyW(lpstrTmpFile, wHttp);
strcatW(lpstrTmpFile, lpFile); strcatW(lpstrTmpFile, lpFile);
retval = (UINT)ShellExecuteW(sei_tmp.hwnd, sei_tmp.lpVerb, lpstrTmpFile, NULL, NULL, 0); retval = (UINT_PTR)ShellExecuteW(sei_tmp.hwnd, sei_tmp.lpVerb, lpstrTmpFile, NULL, NULL, 0);
} }
TRACE("retval %u\n", retval); TRACE("retval %u\n", retval);
......
...@@ -206,7 +206,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl) ...@@ -206,7 +206,7 @@ static int FM_InitMenuPopup(HMENU hmenu, LPCITEMIDLIST pAlternatePidl)
MenuInfo.cbSize = sizeof(MENUINFO); MenuInfo.cbSize = sizeof(MENUINFO);
MenuInfo.fMask = MIM_MENUDATA; MenuInfo.fMask = MIM_MENUDATA;
MenuInfo.dwMenuData = (DWORD) lpFmMi; MenuInfo.dwMenuData = (ULONG_PTR) lpFmMi;
SetMenuInfo (hMenuPopup, &MenuInfo); SetMenuInfo (hMenuPopup, &MenuInfo);
FileMenu_AppendItemW (hmenu, sTemp, uID, iIcon, hMenuPopup, FM_DEFAULT_HEIGHT); FileMenu_AppendItemW (hmenu, sTemp, uID, iIcon, hMenuPopup, FM_DEFAULT_HEIGHT);
...@@ -277,7 +277,7 @@ HMENU WINAPI FileMenu_Create ( ...@@ -277,7 +277,7 @@ HMENU WINAPI FileMenu_Create (
MenuInfo.cbSize = sizeof(MENUINFO); MenuInfo.cbSize = sizeof(MENUINFO);
MenuInfo.fMask = MIM_MENUDATA; MenuInfo.fMask = MIM_MENUDATA;
MenuInfo.dwMenuData = (DWORD) menudata; MenuInfo.dwMenuData = (ULONG_PTR) menudata;
SetMenuInfo (hMenu, &MenuInfo); SetMenuInfo (hMenu, &MenuInfo);
return hMenu; return hMenu;
...@@ -342,7 +342,7 @@ static BOOL FileMenu_AppendItemW( ...@@ -342,7 +342,7 @@ static BOOL FileMenu_AppendItemW(
myItem->iIconIndex = icon; myItem->iIconIndex = icon;
myItem->hMenu = hMenu; myItem->hMenu = hMenu;
mii.fMask = MIIM_DATA; mii.fMask = MIIM_DATA;
mii.dwItemData = (DWORD) myItem; mii.dwItemData = (ULONG_PTR) myItem;
} }
if ( hMenuPopup ) if ( hMenuPopup )
......
...@@ -400,7 +400,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand( ...@@ -400,7 +400,7 @@ static HRESULT WINAPI ISVBgCm_fnInvokeCommand(
*/ */
static HRESULT WINAPI ISVBgCm_fnGetCommandString( static HRESULT WINAPI ISVBgCm_fnGetCommandString(
IContextMenu2 *iface, IContextMenu2 *iface,
UINT idCommand, UINT_PTR idCommand,
UINT uFlags, UINT uFlags,
UINT* lpReserved, UINT* lpReserved,
LPSTR lpszName, LPSTR lpszName,
......
...@@ -452,7 +452,7 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand( ...@@ -452,7 +452,7 @@ static HRESULT WINAPI ISvItemCm_fnInvokeCommand(
*/ */
static HRESULT WINAPI ISvItemCm_fnGetCommandString( static HRESULT WINAPI ISvItemCm_fnGetCommandString(
IContextMenu2 *iface, IContextMenu2 *iface,
UINT idCommand, UINT_PTR idCommand,
UINT uFlags, UINT uFlags,
UINT* lpReserved, UINT* lpReserved,
LPSTR lpszName, LPSTR lpszName,
......
...@@ -2658,7 +2658,7 @@ typedef struct tagTVKEYDOWN ...@@ -2658,7 +2658,7 @@ typedef struct tagTVKEYDOWN
#define TreeView_SetImageList(hwnd, himl, iImage) \ #define TreeView_SetImageList(hwnd, himl, iImage) \
(HIMAGELIST)SNDMSGA((hwnd), TVM_SETIMAGELIST, iImage, \ (HIMAGELIST)SNDMSGA((hwnd), TVM_SETIMAGELIST, iImage, \
(LPARAM)(UINT)(HIMAGELIST)(himl)) (LPARAM)(HIMAGELIST)(himl))
#define TreeView_GetNextItem(hwnd, hitem, code) \ #define TreeView_GetNextItem(hwnd, hitem, code) \
(HTREEITEM)SNDMSGA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\ (HTREEITEM)SNDMSGA((hwnd), TVM_GETNEXTITEM, (WPARAM)code,\
...@@ -2691,8 +2691,8 @@ typedef struct tagTVKEYDOWN ...@@ -2691,8 +2691,8 @@ typedef struct tagTVKEYDOWN
#define TreeView_Select(hwnd, hitem, code) \ #define TreeView_Select(hwnd, hitem, code) \
(UINT)SNDMSGA((hwnd), TVM_SELECTITEM, (WPARAM)code, \ (BOOL)SNDMSGA((hwnd), TVM_SELECTITEM, (WPARAM)(code), \
(LPARAM)(UINT)(hitem)) (LPARAM)(HTREEITEM)(hitem))
#define TreeView_SelectItem(hwnd, hitem) \ #define TreeView_SelectItem(hwnd, hitem) \
...@@ -3663,7 +3663,7 @@ typedef struct NMLVSCROLL ...@@ -3663,7 +3663,7 @@ typedef struct NMLVSCROLL
#define ListView_SetBkColor(hwnd,clrBk) \ #define ListView_SetBkColor(hwnd,clrBk) \
(BOOL)SNDMSGA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk)) (BOOL)SNDMSGA((hwnd),LVM_SETBKCOLOR,0,(LPARAM)(COLORREF)(clrBk))
#define ListView_SetImageList(hwnd,himl,iImageList) \ #define ListView_SetImageList(hwnd,himl,iImageList) \
(HIMAGELIST)(UINT)SNDMSGA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(UINT)(HIMAGELIST)(himl)) (HIMAGELIST)SNDMSGA((hwnd),LVM_SETIMAGELIST,(WPARAM)(iImageList),(LPARAM)(HIMAGELIST)(himl))
#define ListView_GetItemCount(hwnd) \ #define ListView_GetItemCount(hwnd) \
(INT)SNDMSGA((hwnd),LVM_GETITEMCOUNT,0,0L) (INT)SNDMSGA((hwnd),LVM_GETITEMCOUNT,0,0L)
#define ListView_RedrawItems(hwnd,first,last) \ #define ListView_RedrawItems(hwnd,first,last) \
......
...@@ -146,8 +146,8 @@ typedef struct tagSHFILEINFOW ...@@ -146,8 +146,8 @@ typedef struct tagSHFILEINFOW
DECL_WINELIB_TYPE_AW(SHFILEINFO) DECL_WINELIB_TYPE_AW(SHFILEINFO)
DWORD WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT); DWORD_PTR WINAPI SHGetFileInfoA(LPCSTR,DWORD,SHFILEINFOA*,UINT,UINT);
DWORD WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT); DWORD_PTR WINAPI SHGetFileInfoW(LPCWSTR,DWORD,SHFILEINFOW*,UINT,UINT);
#define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo) #define SHGetFileInfo WINELIB_NAME_AW(SHGetFileInfo)
/****************************************** /******************************************
......
...@@ -1033,7 +1033,7 @@ cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS") ...@@ -1033,7 +1033,7 @@ cpp_quote("#define CMIC_MASK_NOZONECHECKS SEE_MASK_NOZONECHECKS")
HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici ); HRESULT InvokeCommand( [in] LPCMINVOKECOMMANDINFO lpici );
HRESULT GetCommandString( HRESULT GetCommandString(
[in] UINT idCmd, [in] UINT_PTR idCmd,
[in] UINT uType, [in] UINT uType,
[out] UINT *pwReserved, [out] UINT *pwReserved,
[out, size_is(cchMax)] LPSTR pszName, [out, size_is(cchMax)] LPSTR pszName,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment