[PATCH] Additional tests for kernel32/file.c for CopyFile/MoveFile used on Mapped Files.

Michael Martin martinmnet at hotmail.com
Sun Nov 1 03:20:13 CST 2009

Added tests to test_CopyFileA to check errors set when destination file is mapped.
- When destination file was open with flag FILE_SHARE_WRITE and is then
mapped, an attempt to copy over it should fail with
ERROR_USER_MAPPED_FILE as test demonstrates.

Added tests to test_MoveFileA to check errors set when source file is mapped.
- MoveFile should fails when source is mapped and set error as ERROR_SHARING_VIOLATION as tests demonstrate.


Windows 7: It works the way you want.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091101/f80bd1ab/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kernel32testsfile.patch
Type: text/x-patch
Size: 4286 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091101/f80bd1ab/attachment-0001.bin>

More information about the wine-patches mailing list