Re: kernel32/tests: Add a test for creating named mapping after closing without unmapping.
12 Apr
2012
12 Apr
'12
3:31 p.m.
Alexander Morozov <amorozov(a)etersoft.ru> wrote:
+ ptr = MapViewOfFile(mapping, FILE_MAP_WRITE, 0, 0, 0); + ok( ptr != NULL, "MapViewOfFile failed with error %d\n", GetLastError() ); + CloseHandle(mapping); + + SetLastError(0xdeadbeef); + mapping = CreateFileMappingA(INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE, 0, MAPPING_SIZE, name); + ok( mapping != INVALID_HANDLE_VALUE, "CreateFileMappingA failed\n" );
It would be interesting to add OpenFileMapping before and after CloseHandle and test what it returns. -- Dmitry.
4994
Age (days ago)
4994
Last active (days ago)
0 comments
1 participants
participants (1)
-
Dmitry Timoshkov