wine/dlls/comctl32 syslink.c

Thomas Weidenmueller wine-patches at reactsoft.com
Mon Nov 21 08:05:37 CST 2005


@@ -1666,9 +1712,8 @@
  */
 VOID SYSLINK_Register (void)
 {
-    WNDCLASSW wndClass;
+    WNDCLASSW wndClass = {0};

-    ZeroMemory (&wndClass, sizeof(wndClass));
     wndClass.style         = CS_GLOBALCLASS | CS_VREDRAW | CS_HREDRAW;
     wndClass.lpfnWndProc   = SysLinkWindowProc;
     wndClass.cbClsExtra    = 0;


Is there a reason this change wasn't applied? Calling ZeroMemory is
slower and prevents certain optimizations by the compiler.

- Thomas



More information about the wine-devel mailing list