Skip to content

Commit

Permalink
[VFDLIB] More 64 bit fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tkreuzer committed Mar 4, 2018
1 parent 0182dcd commit 643e6bf
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 0 deletions.
8 changes: 8 additions & 0 deletions modules/rosapps/lib/vfdlib/vfdguiopen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
8 changes: 8 additions & 0 deletions modules/rosapps/lib/vfdlib/vfdguisave.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down
4 changes: 4 additions & 0 deletions modules/rosapps/lib/vfdlib/vfdshext.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,11 @@ class CVfdShExt : public IContextMenu,
LPCMINVOKECOMMANDINFO lpcmi);

STDMETHODIMP GetCommandString(
#ifndef __REACTOS__
UINT idCmd,
#else
UINT_PTR idCmd,
#endif
UINT uFlags,
UINT *reserved,
LPSTR pszName,
Expand Down
4 changes: 4 additions & 0 deletions modules/rosapps/lib/vfdlib/vfdshmenu.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions modules/rosapps/lib/vfdlib/vfdshprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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);
Expand Down

0 comments on commit 643e6bf

Please sign in to comment.