kernel32/tests: Add a test for creating named mapping after closing without unmapping.
dmitry at baikal.ru
Thu Apr 12 10:31:52 CDT 2012
Alexander Morozov <amorozov at 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.
More information about the wine-devel