-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, My full implementation of LockWindowUpdate caused drawing errors in Kazaa. So, all I have to offer is this smallish patch which makes LockWindowUpdate return more Windows-like return values. - -Ryan -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9J4VkLGMzRzbJfbQRAnBLAKCiJiS9vgduUElHSSyJMpxmrbsJxACeL6mT pn/gLrzB5hPkFhXV/JZACGQ= =6Z9k -----END PGP SIGNATURE-----
Index: windows/dce.c =================================================================== RCS file: /home/wine/wine/windows/dce.c,v retrieving revision 1.71 diff -u -r1.71 dce.c --- windows/dce.c 31 May 2002 23:06:54 -0000 1.71 +++ windows/dce.c 7 Jul 2002 00:00:19 -0000 @@ -44,6 +44,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(dc); +static HWND lockedWnd = 0; static DCE *firstDCE; static HDC defaultDCstate; @@ -652,6 +653,29 @@ */ BOOL WINAPI LockWindowUpdate( HWND hwnd ) { - FIXME("(%x), stub!\n",hwnd); + FIXME("(%x), partial stub!\n",hwnd); + + USER_Lock(); + + if (lockedWnd) + { + if (!hwnd) + { + /* Unlock lockedWnd */ + /* FIXME: Do something */ + } + else + { + /* Attempted to lock a second window */ + /* Return FALSE and do nothing */ + USER_Unlock(); + return FALSE; + } + } + + lockedWnd = hwnd; + + USER_Unlock(); + return TRUE; }