gdi32/tests/bitmap: Fix win9x detection

Alexandre Julliard julliard at winehq.org
Wed Aug 20 07:29:10 CDT 2008


Michael Karcher <wine at mkarcher.dialup.fu-berlin.de> writes:

> In commit 48bb687dfb00b00f789b688459ad5d0ec77a617b, win9x detection was
> changed to use the desktop window instead of a private EDIT window as
> target for GetWindowLongW. GetWindowLongW(GetDesktopWindow(),GWLP_WNDPROC)
> fails on wine (and probably on WinNT as well, as the counts on
> test.winehq.org indicate).
>
> I am unsure about this patch, as I don't know whether is_win9x now
> gets true if one has a Windows 98 system with the Microsoft Layer
> for Unicode installed.

The right way is to get rid of the check, especially since the
GetWindowLongW behavior is irrelevant to what the test is doing. It
should be using something like broken() instead.

-- 
Alexandre Julliard
julliard at winehq.org



More information about the wine-devel mailing list