http://bugs.winehq.org/show_bug.cgi?id=9714
Summary: MapViewOfFile with write permissions should not succeed on a read-only file mapping Product: Wine Version: 0.9.38. Platform: Other OS/Version: Linux Status: UNCONFIRMED Severity: minor Priority: P2 Component: wine-kernel AssignedTo: wine-bugs@winehq.org ReportedBy: silverblade_uk@hotmail.com
I had duplicated some code in one of my programs and accidentally forgot to change the "desired access" for the MapViewOfFile call, despite having changed this in the OpenFileMapping call.
The code below *incorrectly* succeeds on WINE but fails on Windows XP.
=== EXAMPLE ===
HANDLE h; void* m;
h = OpenFileMapping(FILE_MAP_READ, FALSE, "Global\Foo"); m = MapViewOfFile(h, FILE_MAP_WRITE, 0, 0, 0);
=== END EXAMPLE ===
Basically I was opening the mapped file READ-ONLY, but was then trying to create a writable mapping to it.
http://bugs.winehq.org/show_bug.cgi?id=9714
Dmitry Timoshkov dmitry@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1
--- Comment #1 from Dmitry Timoshkov dmitry@codeweavers.com 2007-09-19 06:11:32 --- I can confirm this bug. I sent a test case that demonstrates this problem to wine-patches.
http://bugs.winehq.org/show_bug.cgi?id=9714
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |testcase
--- Comment #2 from Austin English austinenglish@gmail.com 2008-04-15 00:58:01 --- Is this still an issue in current (0.9.59 or newer) wine?
http://bugs.winehq.org/show_bug.cgi?id=9714
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |ABANDONED
--- Comment #3 from Austin English austinenglish@gmail.com 2008-10-22 14:32:27 --- Abandoned.
http://bugs.winehq.org/show_bug.cgi?id=9714
Austin English austinenglish@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #4 from Austin English austinenglish@gmail.com 2008-10-22 14:35:56 --- Closing abandoned.
http://bugs.winehq.org/show_bug.cgi?id=9714
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |REOPENED Resolution|ABANDONED |
--- Comment #5 from Alexandre Julliard julliard@winehq.org 2008-11-05 12:45:50 --- Still a valid bug, it has a test case.
http://bugs.winehq.org/show_bug.cgi?id=9714
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |RESOLVED Resolution| |FIXED
--- Comment #6 from Alexandre Julliard julliard@winehq.org 2008-11-06 09:25:38 --- Fixed by 5e2ed6bfe94eb322efe891c07aa8e58b125f36c2.
http://bugs.winehq.org/show_bug.cgi?id=9714
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #7 from Alexandre Julliard julliard@winehq.org 2008-11-07 10:45:38 --- Closing bugs fixed in 1.1.8.