Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
158f00ed
Commit
158f00ed
authored
May 23, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
May 23, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix: dwFlags must describe target process in UserSignalProc.
parent
beed983b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
12 deletions
+19
-12
process.c
scheduler/process.c
+19
-12
No files found.
scheduler/process.c
View file @
158f00ed
...
...
@@ -178,12 +178,29 @@ PDB *PROCESS_IdToPDB( DWORD id )
*/
void
PROCESS_CallUserSignalProc
(
UINT
uCode
,
DWORD
dwThreadOrProcessId
,
HMODULE
hModule
)
{
PDB
*
pdb
=
PROCESS_Current
()
;
STARTUPINFOA
*
startup
=
pdb
->
env_db
?
pdb
->
env_db
->
startup_info
:
NULL
;
PDB
*
pdb
;
STARTUPINFOA
*
startup
;
DWORD
dwFlags
=
0
;
/* Get thread or process ID */
if
(
dwThreadOrProcessId
==
0
)
{
if
(
uCode
==
USIG_THREAD_INIT
||
uCode
==
USIG_THREAD_EXIT
)
dwThreadOrProcessId
=
GetCurrentThreadId
();
else
dwThreadOrProcessId
=
GetCurrentProcessId
();
}
/* Determine dwFlags */
if
(
uCode
==
USIG_THREAD_INIT
||
uCode
==
USIG_THREAD_EXIT
)
pdb
=
PROCESS_Current
();
else
pdb
=
PROCESS_IdToPDB
(
dwThreadOrProcessId
);
startup
=
pdb
->
env_db
?
pdb
->
env_db
->
startup_info
:
NULL
;
if
(
!
(
pdb
->
flags
&
PDB32_WIN16_PROC
)
)
dwFlags
|=
USIG_FLAGS_WIN32
;
...
...
@@ -203,16 +220,6 @@ void PROCESS_CallUserSignalProc( UINT uCode, DWORD dwThreadOrProcessId, HMODULE
dwFlags
|=
USIG_FLAGS_FEEDBACK
;
}
/* Get thread or process ID */
if
(
dwThreadOrProcessId
==
0
)
{
if
(
uCode
==
USIG_THREAD_INIT
||
uCode
==
USIG_THREAD_EXIT
)
dwThreadOrProcessId
=
GetCurrentThreadId
();
else
dwThreadOrProcessId
=
GetCurrentProcessId
();
}
/* Convert module handle to 16-bit */
if
(
HIWORD
(
hModule
)
)
...
...
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