mirror of
https://github.com/reactos/reactos.git
synced 2024-10-03 07:53:49 +00:00
- revert r32389. It's both useless and incorrect.
- thanks to shadowflare for noticing svn path=/trunk/; revision=33383
This commit is contained in:
parent
3dcbb5e00d
commit
e53bcfc884
|
@ -303,32 +303,24 @@ LRESULT CALLBACK EmptyWindowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa
|
||||||
}
|
}
|
||||||
|
|
||||||
// Registers a minimal window class for passing to the dll function
|
// Registers a minimal window class for passing to the dll function
|
||||||
ATOM RegisterBlankClass(HINSTANCE hInstance, HINSTANCE hPrevInstance)
|
BOOL RegisterBlankClass(HINSTANCE hInstance, HINSTANCE hPrevInstance)
|
||||||
{
|
{
|
||||||
WNDCLASSEX wcex;
|
WNDCLASSEX wcex;
|
||||||
ATOM Ret;
|
|
||||||
|
|
||||||
if (!hPrevInstance)
|
wcex.cbSize = sizeof(WNDCLASSEX);
|
||||||
{
|
wcex.style = 0;
|
||||||
wcex.cbSize = sizeof(WNDCLASSEX);
|
wcex.lpfnWndProc = EmptyWindowProc;
|
||||||
|
wcex.cbClsExtra = 0;
|
||||||
|
wcex.cbWndExtra = 0;
|
||||||
|
wcex.hInstance = hInstance;
|
||||||
|
wcex.hIcon = 0;
|
||||||
|
wcex.hCursor = 0;
|
||||||
|
wcex.hbrBackground = 0;
|
||||||
|
wcex.lpszMenuName = 0;
|
||||||
|
wcex.lpszClassName = rundll32_wclass;
|
||||||
|
wcex.hIconSm = 0;
|
||||||
|
|
||||||
wcex.style = 0;
|
return (RegisterClassEx(&wcex) != (ATOM)0);
|
||||||
wcex.lpfnWndProc = EmptyWindowProc;
|
|
||||||
wcex.cbClsExtra = 0;
|
|
||||||
wcex.cbWndExtra = 0;
|
|
||||||
wcex.hInstance = hInstance;
|
|
||||||
wcex.hIcon = 0;
|
|
||||||
wcex.hCursor = 0;
|
|
||||||
wcex.hbrBackground = 0;
|
|
||||||
wcex.lpszMenuName = 0;
|
|
||||||
wcex.lpszClassName = rundll32_wclass;
|
|
||||||
wcex.hIconSm = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ret = RegisterClassEx(&wcex);
|
|
||||||
if (!Ret) return FALSE;
|
|
||||||
|
|
||||||
return Ret;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int WINAPI _tWinMain(
|
int WINAPI _tWinMain(
|
||||||
|
|
Loading…
Reference in a new issue