Author: gedmurphy Date: Fri May 9 02:30:26 2008 New Revision: 33383
URL: http://svn.reactos.org/svn/reactos?rev=33383&view=rev Log: - revert r32389. It's both useless and incorrect. - thanks to shadowflare for noticing
Modified: trunk/reactos/base/system/rundll32/rundll32.c
Modified: trunk/reactos/base/system/rundll32/rundll32.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/base/system/rundll32/rundll... ============================================================================== --- trunk/reactos/base/system/rundll32/rundll32.c [iso-8859-1] (original) +++ trunk/reactos/base/system/rundll32/rundll32.c [iso-8859-1] Fri May 9 02:30:26 2008 @@ -303,32 +303,24 @@ }
// 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; - ATOM Ret; - - if (!hPrevInstance) - { - wcex.cbSize = sizeof(WNDCLASSEX); - - wcex.style = 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; + + wcex.cbSize = sizeof(WNDCLASSEX); + wcex.style = 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; + + return (RegisterClassEx(&wcex) != (ATOM)0); }
int WINAPI _tWinMain(