kernel32/tests: Check return value of NtGetNlsSectionPtr in test_GetCPInfo (Coverity).
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
b7223aff36
commit
04097b4f92
|
@ -4043,6 +4043,7 @@ static void test_GetCPInfo(void)
|
|||
ok( !status, "failed %x\n", status );
|
||||
ok( size > 0x1000 && size <= 0x8000 , "wrong size %lx\n", size );
|
||||
status = pNtGetNlsSectionPtr( 10, 0, NULL, &ptr2, &size );
|
||||
ok( !status, "failed %x\n", status );
|
||||
ok( ptr != ptr2, "got same pointer\n" );
|
||||
ret = UnmapViewOfFile( ptr );
|
||||
ok( ret, "UnmapViewOfFile failed err %u\n", GetLastError() );
|
||||
|
|
Loading…
Reference in New Issue