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
5b803350
Commit
5b803350
authored
Mar 16, 1999
by
Ulrich Weigand
Committed by
Alexandre Julliard
Mar 16, 1999
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ignore HIWORD of boolean return values of 16-bit hook procedures, to
match buggy Windows behaviour.
parent
88ca57d2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
hook.c
windows/hook.c
+9
-0
No files found.
windows/hook.c
View file @
5b803350
...
...
@@ -995,6 +995,15 @@ static LRESULT HOOK_CallHook( HANDLE16 hook, INT fromtype, INT code,
ret
=
data
->
proc
(
code
,
wParam
,
lParam
);
/* Grrr. While the hook procedure is supposed to have an LRESULT return
value even in Win16, it seems that for those hook types where the
return value is interpreted as BOOL, Windows doesn't actually check
the HIWORD ... Some buggy Win16 programs, notably WINFILE, rely on
that, because they neglect to clear DX ... */
if
(
(
data
->
flags
&
HOOK_MAPTYPE
)
==
HOOK_WIN16
&&
data
->
id
!=
WH_JOURNALPLAYBACK
)
ret
=
LOWORD
(
ret
);
TRACE
(
hook
,
"Ret hook %04x = %08lx
\n
"
,
hook
,
ret
);
data
->
flags
&=
~
HOOK_INUSE
;
...
...
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