kernel32: Add tests for SetHandleCount + make tests pass for winversions >WINNT
Alexandre Julliard
julliard at winehq.org
Fri Sep 3 04:11:38 CDT 2010
Louis Lenders <xerox_xerox2000 at yahoo.co.uk> writes:
> @@ -1192,7 +1192,10 @@ BOOL WINAPI UnlockFileEx( HANDLE hFile, DWORD reserved, DWORD count_low, DWORD c
> */
> UINT WINAPI SetHandleCount( UINT count )
> {
> - return min( 256, count );
> + if (GetVersion() & 0x80000000)
> + return min( 0x100, count );
> + else
> + return min( 0xffffffff, count );
It's pretty unlikely that count would be larger than 0xffffffff. Also I
don't think we need a version check.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list