[VFDLIB] More 64 bit fixes

This commit is contained in:
Timo Kreuzer 2018-02-28 07:05:59 +01:00
parent 0182dcd71b
commit 643e6bf382
5 changed files with 33 additions and 0 deletions

View file

@ -47,7 +47,11 @@
//
// local functions
//
#ifndef __REACTOS__
static INT CALLBACK OpenDialogProc(
#else
static INT_PTR CALLBACK OpenDialogProc(
#endif
HWND hDlg,
UINT uMsg,
WPARAM wParam,
@ -89,7 +93,11 @@ DWORD WINAPI VfdGuiOpen(
//
// Open image dialog procedure
//
#ifndef __REACTOS__
INT CALLBACK OpenDialogProc(
#else
INT_PTR CALLBACK OpenDialogProc(
#endif
HWND hDlg,
UINT uMsg,
WPARAM wParam,

View file

@ -35,7 +35,11 @@
//
// local functions
//
#ifndef __REACTOS__
static INT CALLBACK SaveDialogProc(
#else
static INT_PTR CALLBACK SaveDialogProc(
#endif
HWND hDlg,
UINT uMsg,
WPARAM wParam,
@ -119,7 +123,11 @@ DWORD GuiSaveParam(
//
// The dialog procedure
//
#ifndef __REACTOS__
INT CALLBACK SaveDialogProc(
#else
INT_PTR CALLBACK SaveDialogProc(
#endif
HWND hDlg,
UINT uMsg,
WPARAM wParam,

View file

@ -67,7 +67,11 @@ public:
LPCMINVOKECOMMANDINFO lpcmi);
STDMETHODIMP GetCommandString(
#ifndef __REACTOS__
UINT idCmd,
#else
UINT_PTR idCmd,
#endif
UINT uFlags,
UINT *reserved,
LPSTR pszName,

View file

@ -267,7 +267,11 @@ STDMETHODIMP CVfdShExt::QueryContextMenu(
//
STDMETHODIMP CVfdShExt::GetCommandString(
#ifndef __REACTOS__
UINT idCmd,
#else
UINT_PTR idCmd,
#endif
UINT uFlags,
UINT *reserved,
LPSTR pszName,

View file

@ -237,7 +237,11 @@ void OnControl(
CHAR module_path[MAX_PATH];
CHAR full_path[MAX_PATH];
PSTR file_name;
#ifndef __REACTOS__
DWORD ret;
#else
DWORD_PTR ret;
#endif
ret = GetModuleFileName(
g_hDllModule, module_path, sizeof(module_path));
@ -258,8 +262,13 @@ void OnControl(
VFDTRACE(0, ("Starting %s\n", full_path));
#ifndef __REACTOS__
ret = (DWORD)ShellExecute(
hDlg, NULL, full_path, NULL, NULL, SW_SHOW);
#else
ret = (DWORD_PTR)ShellExecute(
hDlg, NULL, full_path, NULL, NULL, SW_SHOW);
#endif
if (ret > 32) {
PropSheet_PressButton(GetParent(hDlg), PSBTN_CANCEL);