Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
aac478f5
Commit
aac478f5
authored
Aug 21, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Aug 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Catch bad pointers in RtlWow64EnableFsRedirectionEx.
parent
53d73559
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
directory.c
dlls/ntdll/directory.c
+2
-0
directory.c
dlls/ntdll/tests/directory.c
+5
-0
No files found.
dlls/ntdll/directory.c
View file @
aac478f5
...
...
@@ -3022,6 +3022,8 @@ NTSTATUS WINAPI RtlWow64EnableFsRedirection( BOOLEAN enable )
NTSTATUS
WINAPI
RtlWow64EnableFsRedirectionEx
(
ULONG
disable
,
ULONG
*
old_value
)
{
if
(
!
is_wow64
)
return
STATUS_NOT_IMPLEMENTED
;
if
(((
ULONG_PTR
)
old_value
>>
16
)
==
0
)
return
STATUS_ACCESS_VIOLATION
;
*
old_value
=
!
ntdll_get_thread_data
()
->
wow64_redir
;
ntdll_get_thread_data
()
->
wow64_redir
=
!
disable
;
return
STATUS_SUCCESS
;
...
...
dlls/ntdll/tests/directory.c
View file @
aac478f5
...
...
@@ -287,6 +287,11 @@ static void test_redirection(void)
ok
(
!
status
,
"RtlWow64EnableFsRedirectionEx failed status %x
\n
"
,
status
);
ok
(
!
cur
,
"RtlWow64EnableFsRedirectionEx got %u
\n
"
,
cur
);
status
=
pRtlWow64EnableFsRedirectionEx
(
TRUE
,
NULL
);
ok
(
status
==
STATUS_ACCESS_VIOLATION
,
"RtlWow64EnableFsRedirectionEx failed with status %x
\n
"
,
status
);
status
=
pRtlWow64EnableFsRedirectionEx
(
TRUE
,
(
void
*
)
1
);
ok
(
status
==
STATUS_ACCESS_VIOLATION
,
"RtlWow64EnableFsRedirectionEx failed with status %x
\n
"
,
status
);
status
=
pRtlWow64EnableFsRedirection
(
FALSE
);
ok
(
!
status
,
"RtlWow64EnableFsRedirectionEx failed status %x
\n
"
,
status
);
status
=
pRtlWow64EnableFsRedirectionEx
(
FALSE
,
&
cur
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment