Kaydet (Commit) 92f92db2 authored tarafından Tor Lillqvist's avatar Tor Lillqvist

mhPrevInst was pointless

Change-Id: Iacd1c0856f991e11ef26d7ff6bf1e75264b89ac9
üst 50c62725
......@@ -74,7 +74,6 @@ public:
public:
HINSTANCE mhInst; // default instance handle
HINSTANCE mhPrevInst; // previous instance handle
int mnCmdShow; // default frame show style
HPALETTE mhDitherPal; // dither palette
HGLOBAL mhDitherDIB; // dither memory handle
......
......@@ -332,7 +332,6 @@ void SalData::initKeyCodeMap()
SalData::SalData()
{
mhInst = 0; // default instance handle
mhPrevInst = 0; // previous instance handle
mnCmdShow = 0; // default frame show style
mhDitherPal = 0; // dither palette
mhDitherDIB = 0; // dither memory handle
......@@ -435,7 +434,6 @@ void InitSalMain()
aSI.cb = sizeof( aSI );
GetStartupInfo( &aSI );
pData->mhInst = GetModuleHandle( NULL );
pData->mhPrevInst = NULL;
pData->mnCmdShow = aSI.wShowWindow;
}
}
......@@ -464,8 +462,6 @@ SalInstance* CreateSalInstance()
pSalData->mnAppThreadId = GetCurrentThreadId();
// register frame class
if ( !pSalData->mhPrevInst )
{
WNDCLASSEXW aWndClassEx;
aWndClassEx.cbSize = sizeof( aWndClassEx );
aWndClassEx.style = CS_OWNDC;
......@@ -501,7 +497,6 @@ SalInstance* CreateSalInstance()
aWndClassEx.lpszClassName = SAL_COM_CLASSNAMEW;
if ( !RegisterClassExW( &aWndClassEx ) )
return NULL;
}
HWND hComWnd = CreateWindowExW( WS_EX_TOOLWINDOW, SAL_COM_CLASSNAMEW,
L"", WS_POPUP, 0, 0, 0, 0, 0, 0,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment