mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:26:10 +00:00
Make LockWindowUpdate return more Windows-like values.
This commit is contained in:
parent
6da436656c
commit
21a2b606fe
1 changed files with 22 additions and 1 deletions
|
@ -652,6 +652,27 @@ HWND WINAPI WindowFromDC( HDC hDC )
|
|||
*/
|
||||
BOOL WINAPI LockWindowUpdate( HWND hwnd )
|
||||
{
|
||||
FIXME("(%x), stub!\n",hwnd);
|
||||
static HWND lockedWnd;
|
||||
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue