[PATCH] some dc:LockWindowUpdate work

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



this patch improves dc:LockWindowUpdate (windows/dce.c); locking
other windows still not possible, though.

regs,
 Chris


Index: dce.c
===================================================================
RCS file: /home/wine/wine/windows/dce.c,v
retrieving revision 1.72
diff -u -r1.72 dce.c
--- dce.c	9 Jul 2002 01:57:28 -0000	1.72
+++ dce.c	15 Oct 2002 20:22:18 -0000
@@ -653,26 +653,34 @@
 BOOL WINAPI LockWindowUpdate( HWND hwnd )
 {
     static HWND lockedWnd;
-
-    FIXME("(%x), partial stub!\n",hwnd);
-
+    
     USER_Lock();
+    
     if (lockedWnd)
     {
         if (!hwnd)
         {
-            /* Unlock lockedWnd */
-            /* FIXME: Do something */
+	    /* Unlock lockedWnd */
+	    lockedWnd = 0;
+	    
+	    USER_Unlock();
+	    return TRUE;
         }
-        else
+
+	else
         {
             /* Attempted to lock a second window */
             /* Return FALSE and do nothing */
+            FIXME("(%x), stub!\n", hwnd);
+
             USER_Unlock();
             return FALSE;
         }
     }
+
+    /* lock hwnd */
     lockedWnd = hwnd;
+    
     USER_Unlock();
     return TRUE;
 }

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux