ddraw: Add tests for the foreground window set by SetCooperativeLevel
Alexandre Julliard
julliard at winehq.org
Tue Oct 26 12:30:47 CDT 2010
David Adam <david.adam.cnrs at gmail.com> writes:
> @@ -33,8 +33,9 @@ static LPDIRECTDRAW lpDD = NULL;
> static LPDIRECTDRAWSURFACE lpDDSPrimary = NULL;
> static LPDIRECTDRAWSURFACE lpDDSBack = NULL;
> static WNDCLASS wc;
> -static HWND hwnd;
> +static HWND hwnd, hwnd2;
> static int modes_cnt;
> +static BOOL success;
That boolean make much sense, especially with this name. If you want to
check that you have a valid window you should test the window
handle. Same with your createwindow function, it should simply return
the handle.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list