Re: [PATCH 1/2] kernel32/tests: Add a test case for calling TlsFree on a freed index.
2 Mar
2010
2 Mar
'10
8:22 p.m.
On 3/2/2010 23:04, Reece Dunn wrote:
Hi,
TlsFree should return FALSE if there wasn't a TLS slot of the specified index allocated, as well as returning ERROR_INVALID_PARAMETER.
- Reece
- ok(TlsFree(tlsIndex)!=0,"TlsFree failed\n"); + ok(TlsFree(tlsIndex)!=0,"TlsFree failed: %08x\n", GetLastError()); + /* Test freeing an already freed TLS index */ + ok(TlsFree(tlsIndex)==0,"TlsFree succeeded\n"); + ok(GetLastError()==ERROR_INVALID_PARAMETER, + "GetLastError: expected ERROR_INVALID_PARAMETER, got %08x\n", GetLastError());
You need reset last error to something before test.
5854
Age (days ago)
5854
Last active (days ago)
0 comments
1 participants
participants (1)
-
Nikolay Sivov