diff options
-rw-r--r-- | sfx2/source/appl/shutdowniconw32.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sfx2/source/appl/shutdowniconw32.cxx b/sfx2/source/appl/shutdowniconw32.cxx index 4c80752aaad8..502b99f55b0d 100644 --- a/sfx2/source/appl/shutdowniconw32.cxx +++ b/sfx2/source/appl/shutdowniconw32.cxx @@ -121,7 +121,8 @@ static void addMenuItem( HMENU hMenu, UINT id, UINT iconId, const OUString& text mi.fType=MFT_STRING; mi.fState=MFS_ENABLED; mi.wID = id; - mi.dwTypeData = SAL_W(const_cast<sal_Unicode *>(text.getStr())); + mi.dwTypeData = reinterpret_cast<wchar_t *>( + const_cast<sal_Unicode *>(text.getStr())); mi.cch = text.getLength(); } |