Changed casting of HMENU native data

git-svn-id: svn://10.0.0.236/trunk@11413 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rods%netscape.com
1998-09-29 18:32:37 +00:00
parent 63f046a38e
commit 0139444535

View File

@@ -1904,7 +1904,10 @@ PRBool nsWindow::AutoErase()
NS_METHOD nsWindow::SetMenuBar(nsIMenuBar * aMenuBar)
{
HMENU nativeMenuHandle;
aMenuBar->GetNativeData(nativeMenuHandle);
void * voidData;
aMenuBar->GetNativeData(voidData);
nativeMenuHandle = (HMENU)voidData;
if (nsnull != nativeMenuHandle) {
::SetMenu(mWnd, nativeMenuHandle);
return NS_OK;