mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 03:51:41 +00:00
Amd64/misc 64bit fixes (#236)
[REACTOS] Misc 64 bit fixes * [NTOS:MM] Allow MEM_DOS_LIM in NtMapViewOfSection on x64 as well * [NTOS:MM] Implement x64 version of MmIsDisabledPage * [HAL] Remove obsolete code * [NTOS:KE] Fix amd64 version of KeContextToTrapFrame and KeTrapFrameToContext * [XDK] Fix CONTEXT_XSTATE definition * [PCNET] Convert physical address types from pointers to PHYSICAL_ADDRESS
This commit is contained in:
parent
5a4693ff6f
commit
a2f7de7ee8
17 changed files with 72 additions and 76 deletions
|
@ -418,7 +418,7 @@ int MainFrameBase::Command(int id, int code)
|
|||
|
||||
HINSTANCE hinst = ShellExecute(_hwnd, NULL/*operation*/, dlg.cmd/*file*/, NULL/*parameters*/, NULL/*dir*/, dlg.cmdshow);
|
||||
|
||||
if ((int)hinst <= 32)
|
||||
if ((INT_PTR)hinst <= 32)
|
||||
display_error(_hwnd, GetLastError());
|
||||
}
|
||||
break;}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -838,7 +838,7 @@ protected:
|
|||
{
|
||||
if (!_cmd.empty()) {
|
||||
HINSTANCE hinst = ShellExecute(GetParent(_hwnd), _T("open"), _cmd, 0, 0, SW_SHOWNORMAL);
|
||||
return (int)hinst > HINSTANCE_ERROR;
|
||||
return (INT_PTR)hinst > HINSTANCE_ERROR;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
@ -861,7 +861,7 @@ struct ToolTip : public WindowHandle
|
|||
void add(HWND hparent, HWND htool, LPCTSTR txt=LPSTR_TEXTCALLBACK, LPARAM lparam=0)
|
||||
{
|
||||
TOOLINFO ti = {
|
||||
sizeof(TOOLINFO), TTF_SUBCLASS|TTF_IDISHWND|TTF_TRANSPARENT, hparent, (UINT)htool,
|
||||
sizeof(TOOLINFO), TTF_SUBCLASS|TTF_IDISHWND|TTF_TRANSPARENT, hparent, (UINT_PTR)htool,
|
||||
{0,0,0,0}, 0, (LPTSTR)txt, lparam
|
||||
};
|
||||
|
||||
|
@ -893,7 +893,7 @@ struct ToolTip : public WindowHandle
|
|||
void remove(HWND hparent, HWND htool)
|
||||
{
|
||||
TOOLINFO ti = {
|
||||
sizeof(TOOLINFO), TTF_IDISHWND, hparent, (UINT)htool,
|
||||
sizeof(TOOLINFO), TTF_IDISHWND, hparent, (UINT_PTR)htool,
|
||||
{0,0,0,0}, 0, 0, 0
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue