Re: kernel32: Add tests for SetHandleCount + make tests pass for winversions >WINNT
3 Sep
2010
3 Sep
'10
9:11 a.m.
Louis Lenders <xerox_xerox2000(a)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(a)winehq.org
5580
Age (days ago)
5580
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard