From 60e264c4fd78478414278c814d51a8fe4e917780 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Fri, 14 Oct 2016 13:13:36 +0200 Subject: 64-bit Windows fix: InsertMenu takes a UINT_PTR Change-Id: Id14c9ac30d52fdeb6b9157df7f57202e94838909 Reviewed-on: https://gerrit.libreoffice.org/29817 Reviewed-by: Stephan Bergmann Tested-by: Stephan Bergmann --- embedserv/source/embed/docholder.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'embedserv') 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(subMenu),LPCTSTR(buffer)); MENUITEMINFOW mi; memset(&mi,0,sizeof(mi)); -- cgit