[ros-diffs] [gedmurphy] 33383: - revert r32389. It's both useless and incorrect. - thanks to shadowflare for noticing

gedmurphy at svn.reactos.org gedmurphy at svn.reactos.org
Fri May 9 09:30:27 CEST 2008


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/rundll32.c?rev=33383&r1=33382&r2=33383&view=diff
==============================================================================
--- 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(



More information about the Ros-diffs mailing list