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
922a7bd1
Commit
922a7bd1
authored
May 10, 2006
by
Eric Pouech
Committed by
Alexandre Julliard
May 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented SymLoadModuleExW.
parent
4a80e63a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
1 deletion
+37
-1
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+1
-1
module.c
dlls/dbghelp/module.c
+34
-0
dbghelp.h
include/dbghelp.h
+2
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
922a7bd1
...
...
@@ -117,7 +117,7 @@
@ stdcall SymLoadModule(long long str str long long)
@ stdcall SymLoadModule64(long long str str double long)
@ stdcall SymLoadModuleEx(long long str str double long ptr long)
@ st
ub SymLoadModuleExW
@ st
dcall SymLoadModuleExW(long long wstr wstr double long ptr long)
@ stdcall SymMatchFileName(str str ptr ptr)
@ stub SymMatchFileNameW
@ stdcall SymMatchString(str str long)
...
...
dlls/dbghelp/module.c
View file @
922a7bd1
...
...
@@ -30,6 +30,7 @@
#include "winreg.h"
#include "winternl.h"
#include "wine/debug.h"
#include "winnls.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
dbghelp
);
...
...
@@ -463,6 +464,39 @@ DWORD64 WINAPI SymLoadModuleEx(HANDLE hProcess, HANDLE hFile, PCSTR ImageName,
}
/***********************************************************************
* SymLoadModuleExW (DBGHELP.@)
*/
DWORD64
WINAPI
SymLoadModuleExW
(
HANDLE
hProcess
,
HANDLE
hFile
,
PCWSTR
wImageName
,
PCWSTR
wModuleName
,
DWORD64
BaseOfDll
,
DWORD
DllSize
,
PMODLOAD_DATA
Data
,
DWORD
Flags
)
{
LPSTR
ImageName
,
ModuleName
;
unsigned
len
;
BOOL
ret
;
if
(
wImageName
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wImageName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
ImageName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wImageName
,
-
1
,
ImageName
,
len
,
NULL
,
NULL
);
}
else
ImageName
=
NULL
;
if
(
wModuleName
)
{
len
=
WideCharToMultiByte
(
CP_ACP
,
0
,
wModuleName
,
-
1
,
NULL
,
0
,
NULL
,
NULL
);
ModuleName
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
WideCharToMultiByte
(
CP_ACP
,
0
,
wModuleName
,
-
1
,
ModuleName
,
len
,
NULL
,
NULL
);
}
else
ModuleName
=
NULL
;
ret
=
SymLoadModuleEx
(
hProcess
,
hFile
,
ImageName
,
ModuleName
,
BaseOfDll
,
DllSize
,
Data
,
Flags
);
HeapFree
(
GetProcessHeap
(),
0
,
ImageName
);
HeapFree
(
GetProcessHeap
(),
0
,
ModuleName
);
return
ret
;
}
/***********************************************************************
* SymLoadModule64 (DBGHELP.@)
*/
DWORD64
WINAPI
SymLoadModule64
(
HANDLE
hProcess
,
HANDLE
hFile
,
PCSTR
ImageName
,
...
...
include/dbghelp.h
View file @
922a7bd1
...
...
@@ -763,6 +763,8 @@ DWORD WINAPI SymLoadModule(HANDLE, HANDLE, PCSTR, PCSTR, DWORD, DWORD);
DWORD64
WINAPI
SymLoadModule64
(
HANDLE
,
HANDLE
,
PCSTR
,
PCSTR
,
DWORD64
,
DWORD
);
DWORD64
WINAPI
SymLoadModuleEx
(
HANDLE
,
HANDLE
,
PCSTR
,
PCSTR
,
DWORD64
,
DWORD
,
PMODLOAD_DATA
,
DWORD
);
DWORD64
WINAPI
SymLoadModuleExW
(
HANDLE
,
HANDLE
,
PCWSTR
,
PCWSTR
,
DWORD64
,
DWORD
,
PMODLOAD_DATA
,
DWORD
);
BOOL
WINAPI
SymUnloadModule
(
HANDLE
,
DWORD
);
BOOL
WINAPI
SymUnloadModule64
(
HANDLE
,
DWORD64
);
...
...
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