зеркало из https://github.com/mozilla/pjs.git
Fixes to support Visual C++ 6.0
This commit is contained in:
Родитель
dd21227bb9
Коммит
24a14756cb
|
@ -127,7 +127,7 @@ nsresult nsXPFCMenuContainerWin :: Update()
|
|||
{
|
||||
char * name = container_item->GetLabel().ToNewCString();
|
||||
|
||||
::AppendMenu(GetParent()->GetNativeHandle(),
|
||||
::AppendMenu((HMENU)GetParent()->GetNativeHandle(),
|
||||
MF_POPUP,
|
||||
(PRUint32)mMenu,
|
||||
(LPSTR)name);
|
||||
|
@ -151,7 +151,7 @@ nsresult nsXPFCMenuContainerWin :: SetShellContainer(nsIShellInstance * aShellIn
|
|||
nsIWebViewerContainer * aWebViewerContainer)
|
||||
{
|
||||
|
||||
mHwnd = aShellInstance->GetApplicationWindowNativeInstance();
|
||||
mHwnd = (HWND)aShellInstance->GetApplicationWindowNativeInstance();
|
||||
mMenu = ::CreateMenu();
|
||||
::SetMenu(mHwnd, mMenu);
|
||||
|
||||
|
|
|
@ -65,7 +65,7 @@ static NS_DEFINE_IID(kCstackCID, NS_STACK_CID);
|
|||
static NS_DEFINE_IID(kCBoxLayoutCID, NS_BOXLAYOUT_CID);
|
||||
static NS_DEFINE_IID(kCListLayoutCID, NS_LISTLAYOUT_CID);
|
||||
|
||||
int PASCAL WinMain(HANDLE instance, HANDLE prevInstance, LPSTR cmdParam, int nCmdShow)
|
||||
int CALLBACK WinMain(HINSTANCE instance, HINSTANCE prevInstance, LPSTR cmdParam, int nCmdShow)
|
||||
{
|
||||
nsresult result = NS_OK ;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче