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:
Alex Henrie 2021-12-26 16:15:31 -07:00 committed by Alexandre Julliard
parent b7223aff36
commit 04097b4f92
1 changed files with 1 additions and 0 deletions

View File

@ -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() );