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
8657ad87
Commit
8657ad87
authored
Sep 21, 2004
by
Alexander Yaworsky
Committed by
Alexandre Julliard
Sep 21, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make RtlCreateUserThread fail if process handle is not for the current
process.
parent
9d590d50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
1 deletion
+9
-1
ntdll_misc.h
dlls/ntdll/ntdll_misc.h
+2
-0
thread.c
dlls/ntdll/thread.c
+6
-0
virtual.c
dlls/ntdll/virtual.c
+1
-1
No files found.
dlls/ntdll/ntdll_misc.h
View file @
8657ad87
...
...
@@ -93,6 +93,8 @@ extern DWORD VIRTUAL_HandleFault(LPCVOID addr);
extern
BOOL
VIRTUAL_HasMapping
(
LPCVOID
addr
);
extern
void
VIRTUAL_UseLargeAddressSpace
(
void
);
extern
BOOL
is_current_process
(
HANDLE
handle
);
/* code pages */
extern
int
ntdll_umbstowcs
(
DWORD
flags
,
const
char
*
src
,
int
srclen
,
WCHAR
*
dst
,
int
dstlen
);
extern
int
ntdll_wcstoumbs
(
DWORD
flags
,
const
WCHAR
*
src
,
int
srclen
,
char
*
dst
,
int
dstlen
,
...
...
dlls/ntdll/thread.c
View file @
8657ad87
...
...
@@ -216,6 +216,12 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
int
request_pipe
[
2
];
NTSTATUS
status
;
if
(
!
is_current_process
(
process
)
)
{
ERR
(
"Unsupported on other process
\n
"
);
return
STATUS_ACCESS_DENIED
;
}
if
(
pipe
(
request_pipe
)
==
-
1
)
return
STATUS_TOO_MANY_OPENED_FILES
;
fcntl
(
request_pipe
[
1
],
F_SETFD
,
1
);
/* set close on exec flag */
wine_server_send_fd
(
request_pipe
[
0
]
);
...
...
dlls/ntdll/virtual.c
View file @
8657ad87
...
...
@@ -1028,7 +1028,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
*
* Check whether a process handle is for the current process.
*/
static
BOOL
is_current_process
(
HANDLE
handle
)
BOOL
is_current_process
(
HANDLE
handle
)
{
BOOL
ret
=
FALSE
;
...
...
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