mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 504025 - [windows x64] casting pointer to long is illegal on win64; don't cast HINSTANCE to int, use LONG_PTR instead; r=benjamin sr=cbiesinger
--HG-- extra : rebase_source : b60364af67246d341865a1d52c6fc93d4b62cf4b
This commit is contained in:
parent
3aac38d487
commit
3261283c4d
@ -146,7 +146,7 @@ nsMIMEInfoWin::LaunchWithFile(nsIFile* aFile)
|
|||||||
if (ShellExecuteExW(&seinfo))
|
if (ShellExecuteExW(&seinfo))
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
|
|
||||||
switch ((int)seinfo.hInstApp) {
|
switch ((LONG_PTR)seinfo.hInstApp) {
|
||||||
case 0:
|
case 0:
|
||||||
case SE_ERR_OOM:
|
case SE_ERR_OOM:
|
||||||
return NS_ERROR_OUT_OF_MEMORY;
|
return NS_ERROR_OUT_OF_MEMORY;
|
||||||
@ -326,7 +326,7 @@ nsMIMEInfoWin::LoadUriInternal(nsIURI * aURL)
|
|||||||
}
|
}
|
||||||
if (NS_SUCCEEDED(rv)) {
|
if (NS_SUCCEEDED(rv)) {
|
||||||
BOOL result = ShellExecuteExW(&sinfo);
|
BOOL result = ShellExecuteExW(&sinfo);
|
||||||
if (!result || ((int)sinfo.hInstApp) < 32)
|
if (!result || ((LONG_PTR)sinfo.hInstApp) < 32)
|
||||||
rv = NS_ERROR_FAILURE;
|
rv = NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
#ifndef WINCE
|
#ifndef WINCE
|
||||||
|
Loading…
Reference in New Issue
Block a user