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
13ca78cf
Commit
13ca78cf
authored
Sep 09, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
user32: Use explicit prototypes for function pointers.
parent
858f0878
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
hook.c
dlls/user32/hook.c
+9
-8
nonclient.c
dlls/user32/nonclient.c
+3
-1
No files found.
dlls/user32/hook.c
View file @
13ca78cf
...
...
@@ -85,7 +85,7 @@ WINE_DECLARE_DEBUG_CHANNEL(relay);
struct
hook_info
{
INT
id
;
FARPROC
proc
;
void
*
proc
;
void
*
handle
;
DWORD
pid
,
tid
;
BOOL
prev_unicode
,
next_unicode
;
...
...
@@ -844,24 +844,25 @@ void WINAPI NotifyWinEvent(DWORD event, HWND hwnd, LONG object_id, LONG child_id
do
{
if
(
info
.
proc
)
WINEVENTPROC
proc
=
info
.
proc
;
if
(
proc
)
{
TRACE
(
"calling WH_WINEVENT hook %p event %x hwnd %p %x %x module %s
\n
"
,
info
.
proc
,
event
,
hwnd
,
object_id
,
child_id
,
debugstr_w
(
info
.
module
)
);
proc
,
event
,
hwnd
,
object_id
,
child_id
,
debugstr_w
(
info
.
module
)
);
if
(
!
info
.
module
[
0
]
||
(
info
.
proc
=
get_hook_proc
(
info
.
proc
,
info
.
module
))
!=
NULL
)
if
(
!
info
.
module
[
0
]
||
(
proc
=
get_hook_proc
(
proc
,
info
.
module
))
!=
NULL
)
{
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Call winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
info
.
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
GetCurrentThreadId
(),
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
info
.
proc
(
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
proc
(
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
if
(
TRACE_ON
(
relay
))
DPRINTF
(
"%04x:Ret winevent hook proc %p (hhook=%p,event=%x,hwnd=%p,object_id=%x,child_id=%x,tid=%04x,time=%x)
\n
"
,
GetCurrentThreadId
(),
info
.
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
GetCurrentThreadId
(),
proc
,
info
.
handle
,
event
,
hwnd
,
object_id
,
child_id
,
GetCurrentThreadId
(),
GetCurrentTime
());
}
}
...
...
dlls/user32/nonclient.c
View file @
13ca78cf
...
...
@@ -1600,7 +1600,9 @@ LRESULT NC_HandleSysCommand( HWND hwnd, WPARAM wParam, LPARAM lParam )
HMODULE
hmodule
=
LoadLibraryA
(
"shell32.dll"
);
if
(
hmodule
)
{
FARPROC
aboutproc
=
GetProcAddress
(
hmodule
,
"ShellAboutA"
);
BOOL
(
WINAPI
*
aboutproc
)(
HWND
,
LPCSTR
,
LPCSTR
,
HICON
);
aboutproc
=
(
void
*
)
GetProcAddress
(
hmodule
,
"ShellAboutA"
);
if
(
aboutproc
)
aboutproc
(
hwnd
,
PACKAGE_STRING
,
NULL
,
0
);
FreeLibrary
(
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