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
75030285
Commit
75030285
authored
Feb 12, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32/tests: Load GetMappedFileNameW() dynamically.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
6d9b3311
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
debugger.c
dlls/kernel32/tests/debugger.c
+5
-3
No files found.
dlls/kernel32/tests/debugger.c
View file @
75030285
...
...
@@ -26,7 +26,6 @@
#include <windows.h>
#include <winternl.h>
#include <winreg.h>
#include <psapi.h>
#include "wine/test.h"
#include "wine/heap.h"
#include "wine/rbtree.h"
...
...
@@ -51,6 +50,7 @@ static NTSTATUS (WINAPI *pNtSetInformationDebugObject)(HANDLE,DEBUGOBJECTINFOCL
static
NTSTATUS
(
WINAPI
*
pDbgUiConnectToDbg
)(
void
);
static
HANDLE
(
WINAPI
*
pDbgUiGetThreadDebugObject
)(
void
);
static
void
(
WINAPI
*
pDbgUiSetThreadDebugObject
)(
HANDLE
);
static
DWORD
(
WINAPI
*
pGetMappedFileNameW
)(
HANDLE
,
void
*
,
WCHAR
*
,
DWORD
);
static
LONG
child_failures
;
...
...
@@ -909,7 +909,7 @@ static void check_dll_event( HANDLE process, DEBUG_EVENT *ev )
case
CREATE_PROCESS_DEBUG_EVENT
:
break
;
case
LOAD_DLL_DEBUG_EVENT
:
if
(
!
GetMappedFileNameW
(
process
,
ev
->
u
.
LoadDll
.
lpBaseOfDll
,
module
,
MAX_PATH
))
module
[
0
]
=
0
;
if
(
!
p
GetMappedFileNameW
(
process
,
ev
->
u
.
LoadDll
.
lpBaseOfDll
,
module
,
MAX_PATH
))
module
[
0
]
=
0
;
if
((
p
=
wcsrchr
(
module
,
'\\'
)))
p
++
;
else
p
=
module
;
if
(
!
wcsicmp
(
p
,
L"ole32.dll"
))
ole32_mod
=
ev
->
u
.
LoadDll
.
lpBaseOfDll
;
...
...
@@ -1954,7 +1954,9 @@ START_TEST(debugger)
hdll
=
GetModuleHandleA
(
"kernel32.dll"
);
pCheckRemoteDebuggerPresent
=
(
void
*
)
GetProcAddress
(
hdll
,
"CheckRemoteDebuggerPresent"
);
pGetMappedFileNameW
=
(
void
*
)
GetProcAddress
(
hdll
,
"GetMappedFileNameW"
);
if
(
!
pGetMappedFileNameW
)
pGetMappedFileNameW
=
(
void
*
)
GetProcAddress
(
LoadLibraryA
(
"psapi.dll"
),
"GetMappedFileNameW"
);
ntdll
=
GetModuleHandleA
(
"ntdll.dll"
);
pDbgBreakPoint
=
(
void
*
)
GetProcAddress
(
ntdll
,
"DbgBreakPoint"
);
pNtSuspendProcess
=
(
void
*
)
GetProcAddress
(
ntdll
,
"NtSuspendProcess"
);
...
...
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