[PATCH v2] ntdll: Catch page fault in RtlWow64EnableFsRedirectionEx
nerv at dawncrow.de
Sun Aug 7 06:08:09 CDT 2016
Am 07.08.2016 um 00:00 schrieb Matt Robinson:
> Previously, RtlWow64EnableFsRedirectionEx only returned
> STATUS_NOT_IMPLEMENTED if the old_value pointer started with 0x0000, and
> would cause an unhandled page fault if an invalid handle not starting
> with 0x00 was passed. However, Windows seems to catch page faults when
> accessing old_value and returns STATUS_ACCESS_VIOLATION.
> This adds a test to confirm the behaviour and then wraps the access to
> old_value in an exception handler.
> v2: Remove old pointer check as the new code supersedes this.
> Thanks to Nikolay Sivov & André Hentschel for their feedback.
> Fixes https://bugs.winehq.org/show_bug.cgi?id=41066
> Signed-off-by: Matt Robinson <git at nerdoftheherd.com>
Signed-off-by: André Hentschel <nerv at dawncrow.de>
More information about the wine-patches