[4/4] user32: Prevent clipboard viewers that change the clipboard from going into an infinite loop.
Alexandre Julliard
julliard at winehq.org
Wed Sep 23 09:15:09 CDT 2009
Alexander Scott-Johns <alexander.scott.johns at googlemail.com> writes:
> @@ -287,6 +287,7 @@ BOOL WINAPI OpenClipboard( HWND hWnd )
> */
> BOOL WINAPI CloseClipboard(void)
> {
> + static BOOL bRecursion = FALSE;
> BOOL bRet = FALSE;
You shouldn't use a static variable, this would have to be
per-thread. But it's probably better to find a way to do that based
on the current clipboard info.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list