Skip to content

Commit

Permalink
fix x86 build
Browse files Browse the repository at this point in the history
  • Loading branch information
Marc-André Moreau committed Apr 3, 2024
1 parent 5153a25 commit a797881
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dll/AxHost/RdpAxHostWnd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,7 @@ class CRdpAxHostWnd : public IUnknown

// Add Zoom submenu to the system menu
::AppendMenu(hSysMenu, MF_SEPARATOR, 0, NULL);
::AppendMenu(hSysMenu, MF_POPUP, (UINT_PTR)hZoomMenu, _T("Zoom"));
::AppendMenu(hSysMenu, MF_POPUP, (::UINT_PTR)hZoomMenu, _T("Zoom"));

::AppendMenu(hSysMenu, MF_STRING | ToMenuCheckFlag(m_smartSizing), SYSCOMMAND_SMART_SIZING_ID, _T("Smart Sizing"));

Expand Down
2 changes: 1 addition & 1 deletion dll/AxHost/RdpWinMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ static LPWSTR ProcessAxHostCommandLine(LPWSTR lpCmdLine, bool* axHost)
return cmdLine;
}

int WINAPI MsRdpEx_WinMain(
int MsRdpEx_WinMain(
_In_ HINSTANCE hInstance,
_In_opt_ HINSTANCE hPrevInstance,
_In_ LPWSTR lpCmdLine,
Expand Down
8 changes: 8 additions & 0 deletions dll/AxHost/RdpWinMain.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,19 @@

#include <MsRdpEx/MsRdpEx.h>

#ifdef __cplusplus
extern "C" {
#endif

int MsRdpEx_WinMain(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPWSTR lpCmdLine,
int nCmdShow,
const char* axName);

#ifdef __cplusplus
}
#endif

#endif /* MSRDPEX_WIN_MAIN_H */

0 comments on commit a797881

Please sign in to comment.