[1/2] kernel32: Add a test for protections accepted by CreateFileMapping, make it pass under Wine.

Francois Gouget fgouget at free.fr
Mon Nov 28 10:03:40 CST 2011


On Mon, 28 Nov 2011, Dmitry Timoshkov wrote:
[...]
> Could you please try to remove GENERIC_EXECUTE from the CreateFile call and
> try again?

Heer is the adjusted patch and corresponding log (still on Windows 
Millenium).

-- 
Francois Gouget <fgouget at free.fr>              http://fgouget.free.fr/
           If it stinks, it's chemistry. If it moves, it's biology.
                  If it does not work, it's computer science.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: prot.diff
Type: text/x-diff
Size: 7835 bytes
Desc: prot.diff
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20111128/85fc4ff5/attachment-0001.diff>
-------------- next part --------------
virtual.c:1680: system page size 0x1000

virtual.c:1744: Test failed: 0: CreateFileMapping should fail

virtual.c:1745: Test failed: 0: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 1: CreateFileMapping should fail

virtual.c:1745: Test failed: 1: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 2: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 2: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 3: CreateFileMapping should fail

virtual.c:1745: Test failed: 3: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 4: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 4: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 5: CreateFileMapping should fail

virtual.c:1745: Test failed: 5: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 6: CreateFileMapping should fail

virtual.c:1745: Test failed: 6: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 7: CreateFileMapping should fail

virtual.c:1745: Test failed: 7: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 8: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 8: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 9: CreateFileMapping should fail

virtual.c:1745: Test failed: 9: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 10: CreateFileMapping should fail

virtual.c:1745: Test failed: 10: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 11: CreateFileMapping should fail

virtual.c:1745: Test failed: 11: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 12: CreateFileMapping should fail

virtual.c:1745: Test failed: 12: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 13: CreateFileMapping should fail

virtual.c:1745: Test failed: 13: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 14: CreateFileMapping should fail

virtual.c:1745: Test failed: 14: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 15: CreateFileMapping should fail

virtual.c:1745: Test failed: 15: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 16: CreateFileMapping should fail

virtual.c:1745: Test failed: 16: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 17: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 17: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 18: CreateFileMapping should fail

virtual.c:1745: Test failed: 18: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 19: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 19: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 20: CreateFileMapping should fail

virtual.c:1745: Test failed: 20: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 21: CreateFileMapping should fail

virtual.c:1745: Test failed: 21: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 22: CreateFileMapping should fail

virtual.c:1745: Test failed: 22: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1725: Test failed: 23: 0x1 != PAGE_READONLY

virtual.c:1727: Test failed: 23: 0x20000 != MEM_MAPPED

virtual.c:1744: Test failed: 24: CreateFileMapping should fail

virtual.c:1745: Test failed: 24: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 25: CreateFileMapping should fail

virtual.c:1745: Test failed: 25: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 26: CreateFileMapping should fail

virtual.c:1745: Test failed: 26: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 27: CreateFileMapping should fail

virtual.c:1745: Test failed: 27: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 28: CreateFileMapping should fail

virtual.c:1745: Test failed: 28: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 29: CreateFileMapping should fail

virtual.c:1745: Test failed: 29: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1744: Test failed: 30: CreateFileMapping should fail

virtual.c:1745: Test failed: 30: expected ERROR_INVALID_PARAMETER, got 0

virtual.c:1588: system page size 0x1000

virtual.c:1604: Test failed: 16: got 0x2 != expected 0x10

virtual.c:1606: Test failed: 16: 0x2 != 0x10

virtual.c:1604: Test failed: 17: got 0x2 != expected 0x20

virtual.c:1606: Test failed: 17: 0x2 != 0x20

virtual.c:1604: Test failed: 19: got 0x4 != expected 0x40

virtual.c:1606: Test failed: 19: 0x4 != 0x40

virtual.c:1617: Test failed: 19: got 0x4 != expected 0x40

virtual.c:1435: system page size 0x1000

virtual.c:1467: Test failed: 16: got 0x2 != expected 0x10

virtual.c:1484: Test failed: 16: got 0x2 != expected 0x10

virtual.c:1467: Test failed: 17: got 0x2 != expected 0x20

virtual.c:1484: Test failed: 17: got 0x2 != expected 0x20

virtual.c:1467: Test failed: 19: got 0x4 != expected 0x40

virtual.c:1484: Test failed: 19: got 0x4 != expected 0x40

virtual.c:87: Tests skipped: VirtualAllocEx not implemented

virtual.c:437: Tests skipped: no access checks on win9x

virtual.c:617: Tests skipped: no access checks on win9x

virtual.c:644: Tests skipped: no access checks on win9x

virtual.c:660: mapping same section resulted in views 8315D000 and 8315D000

virtual.c:805: Tests skipped: NtMapViewOfSection not available

virtual.c:855: Tests skipped: NtAreMappedFilesTheSame not available

virtual: 920 tests executed (0 marked as todo, 75 failures), 6 skipped.



More information about the wine-devel mailing list