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
808d4a77
Commit
808d4a77
authored
May 05, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
May 05, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mountmgr.sys: Avoid passing a stack pointer to the run_loop thread.
Signed-off-by:
Rémi Bernon
<
rbernon@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
757f9e97
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
mountmgr.c
dlls/mountmgr.sys/mountmgr.c
+5
-5
No files found.
dlls/mountmgr.sys/mountmgr.c
View file @
808d4a77
...
...
@@ -609,7 +609,8 @@ static DWORD WINAPI device_op_thread( void *arg )
static
DWORD
WINAPI
run_loop_thread
(
void
*
arg
)
{
return
MOUNTMGR_CALL
(
run_loop
,
arg
);
struct
run_loop_params
params
=
{.
op_thread
=
arg
,
.
op_apc
=
device_op
};
return
MOUNTMGR_CALL
(
run_loop
,
&
params
);
}
...
...
@@ -624,7 +625,7 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
DEVICE_OBJECT
*
device
;
HKEY
devicemap_key
;
NTSTATUS
status
;
struct
run_loop_params
params
;
HANDLE
thread
;
TRACE
(
"%s
\n
"
,
debugstr_w
(
path
->
Buffer
)
);
...
...
@@ -655,9 +656,8 @@ NTSTATUS WINAPI DriverEntry( DRIVER_OBJECT *driver, UNICODE_STRING *path )
RtlInitUnicodeString
(
&
nameW
,
L"
\\
Driver
\\
Harddisk"
);
status
=
IoCreateDriver
(
&
nameW
,
harddisk_driver_entry
);
params
.
op_thread
=
CreateThread
(
NULL
,
0
,
device_op_thread
,
NULL
,
0
,
NULL
);
params
.
op_apc
=
device_op
;
CloseHandle
(
CreateThread
(
NULL
,
0
,
run_loop_thread
,
&
params
,
0
,
NULL
));
thread
=
CreateThread
(
NULL
,
0
,
device_op_thread
,
NULL
,
0
,
NULL
);
CloseHandle
(
CreateThread
(
NULL
,
0
,
run_loop_thread
,
thread
,
0
,
NULL
));
#ifdef _WIN64
/* create a symlink so that the Wine port overrides key can be edited with 32-bit reg or regedit */
...
...
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