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
7ca2a1ad
Commit
7ca2a1ad
authored
Nov 25, 2017
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winedevice: Use the magic format string prefix for relay traces.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
cd1f412d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
+6
-12
device.c
programs/winedevice/device.c
+6
-12
No files found.
programs/winedevice/device.c
View file @
7ca2a1ad
...
...
@@ -263,15 +263,13 @@ static NTSTATUS WINAPI init_driver( DRIVER_OBJECT *driver_object, UNICODE_STRING
if
(
!
nt
->
OptionalHeader
.
AddressOfEntryPoint
)
return
STATUS_SUCCESS
;
driver_object
->
DriverInit
=
(
PDRIVER_INITIALIZE
)((
char
*
)
module
+
nt
->
OptionalHeader
.
AddressOfEntryPoint
);
if
(
WINE_TRACE_ON
(
relay
))
WINE_DPRINTF
(
"%04x:Call driver init %p (obj=%p,str=%s)
\n
"
,
GetCurrentThreadId
(),
driver_object
->
DriverInit
,
driver_object
,
wine_dbgstr_w
(
keyname
->
Buffer
)
);
TRACE_
(
relay
)(
"
\1
Call driver init %p (obj=%p,str=%s)
\n
"
,
driver_object
->
DriverInit
,
driver_object
,
wine_dbgstr_w
(
keyname
->
Buffer
)
);
status
=
driver_object
->
DriverInit
(
driver_object
,
keyname
);
if
(
WINE_TRACE_ON
(
relay
))
WINE_DPRINTF
(
"%04x:Ret driver init %p (obj=%p,str=%s) retval=%08x
\n
"
,
GetCurrentThreadId
(),
driver_object
->
DriverInit
,
driver_object
,
wine_dbgstr_w
(
keyname
->
Buffer
),
status
);
TRACE_
(
relay
)(
"
\1
Ret driver init %p (obj=%p,str=%s) retval=%08x
\n
"
,
driver_object
->
DriverInit
,
driver_object
,
wine_dbgstr_w
(
keyname
->
Buffer
),
status
);
WINE_TRACE
(
"init done for %s obj %p
\n
"
,
wine_dbgstr_w
(
driver_name
),
driver_object
);
WINE_TRACE
(
"- DriverInit = %p
\n
"
,
driver_object
->
DriverInit
);
...
...
@@ -303,15 +301,11 @@ static void WINAPI async_unload_driver( PTP_CALLBACK_INSTANCE instance, void *co
DRIVER_OBJECT
*
driver_obj
=
driver
->
driver_obj
;
LDR_MODULE
*
ldr
;
if
(
WINE_TRACE_ON
(
relay
))
WINE_DPRINTF
(
"%04x:Call driver unload %p (obj=%p)
\n
"
,
GetCurrentThreadId
(),
driver_obj
->
DriverUnload
,
driver_obj
);
TRACE_
(
relay
)(
"
\1
Call driver unload %p (obj=%p)
\n
"
,
driver_obj
->
DriverUnload
,
driver_obj
);
driver_obj
->
DriverUnload
(
driver_obj
);
if
(
WINE_TRACE_ON
(
relay
))
WINE_DPRINTF
(
"%04x:Ret driver unload %p (obj=%p)
\n
"
,
GetCurrentThreadId
(),
driver_obj
->
DriverUnload
,
driver_obj
);
TRACE_
(
relay
)(
"
\1
Ret driver unload %p (obj=%p)
\n
"
,
driver_obj
->
DriverUnload
,
driver_obj
);
ldr
=
driver_obj
->
DriverSection
;
FreeLibrary
(
ldr
->
BaseAddress
);
...
...
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