summaryrefslogtreecommitdiff
path: root/embedserv
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-10-14 13:13:36 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-10-14 12:48:31 +0000
commit60e264c4fd78478414278c814d51a8fe4e917780 (patch)
treeb9932d5dabcef2556293a5fa4ec5d23ccc12cf94 /embedserv
parent7ae079274d15ab309c9811c0b3966bed727a6afe (diff)
64-bit Windows fix: InsertMenu takes a UINT_PTR
Change-Id: Id14c9ac30d52fdeb6b9157df7f57202e94838909 Reviewed-on: https://gerrit.libreoffice.org/29817 Reviewed-by: Stephan Bergmann <sbergman@redhat.com> Tested-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'embedserv')
-rw-r--r--embedserv/source/embed/docholder.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/embedserv/source/embed/docholder.cxx b/embedserv/source/embed/docholder.cxx
index 091dd2527ee2..d4a6a4168a1b 100644
--- a/embedserv/source/embed/docholder.cxx
+++ b/embedserv/source/embed/docholder.cxx
@@ -511,7 +511,7 @@ void CopyToOLEMenu(HMENU hOrig,WORD origPos,HMENU hDest,WORD destPos)
subMenu = GetSubMenu(hOrig,origPos);
GetMenuString(hOrig,origPos,buffer,256,MF_BYPOSITION);
InsertMenu(hDest,destPos,uTemp,
- (UINT)subMenu,LPCTSTR(buffer));
+ reinterpret_cast<UINT_PTR>(subMenu),LPCTSTR(buffer));
MENUITEMINFOW mi;
memset(&mi,0,sizeof(mi));