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
1f437ed8
Commit
1f437ed8
authored
Jun 20, 2023
by
Eric Pouech
Committed by
Alexandre Julliard
Jun 20, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Create implementation basis for SymSrvGetFileIndex*().
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
parent
20f6b540
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
81 additions
and
14 deletions
+81
-14
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+3
-3
path.c
dlls/dbghelp/path.c
+78
-0
symbol.c
dlls/dbghelp/symbol.c
+0
-11
No files found.
dlls/dbghelp/dbghelp.spec
View file @
1f437ed8
...
...
@@ -176,11 +176,11 @@
@ stub SymSrvDeltaName
@ stub SymSrvDeltaNameW
@ stdcall SymSrvGetFileIndexInfo(str ptr long)
@ st
ub SymSrvGetFileIndexInfoW
@ st
dcall SymSrvGetFileIndexInfoW(wstr ptr long)
@ stub SymSrvGetFileIndexString
@ stub SymSrvGetFileIndexStringW
@ st
ub SymSrvGetFileIndexes
@ st
ub SymSrvGetFileIndexesW
@ st
dcall SymSrvGetFileIndexes(str ptr ptr ptr long)
@ st
dcall SymSrvGetFileIndexesW(wstr ptr ptr ptr long)
@ stub SymSrvGetSupplement
@ stub SymSrvGetSupplementW
@ stub SymSrvIsStore
...
...
dlls/dbghelp/path.c
View file @
1f437ed8
...
...
@@ -839,3 +839,81 @@ BOOL search_unix_path(const WCHAR *name, const WCHAR *path, BOOL (*match)(void*,
heap_free
(
buf
);
return
ret
;
}
/******************************************************************
* SymSrvGetFileIndexInfo (DBGHELP.@)
*
*/
BOOL
WINAPI
SymSrvGetFileIndexInfo
(
const
char
*
file
,
SYMSRV_INDEX_INFO
*
info
,
DWORD
flags
)
{
SYMSRV_INDEX_INFOW
infoW
;
WCHAR
fileW
[
MAX_PATH
];
BOOL
ret
;
TRACE
(
"(%s, %p, 0x%08lx)
\n
"
,
debugstr_a
(
file
),
info
,
flags
);
if
(
info
->
sizeofstruct
<
sizeof
(
*
info
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
MultiByteToWideChar
(
CP_ACP
,
0
,
file
,
-
1
,
fileW
,
ARRAY_SIZE
(
fileW
));
infoW
.
sizeofstruct
=
sizeof
(
infoW
);
ret
=
SymSrvGetFileIndexInfoW
(
fileW
,
&
infoW
,
flags
);
if
(
ret
)
{
WideCharToMultiByte
(
CP_ACP
,
0
,
infoW
.
file
,
-
1
,
info
->
file
,
ARRAY_SIZE
(
info
->
file
),
NULL
,
NULL
);
info
->
stripped
=
infoW
.
stripped
;
info
->
timestamp
=
infoW
.
timestamp
;
info
->
size
=
infoW
.
size
;
WideCharToMultiByte
(
CP_ACP
,
0
,
infoW
.
dbgfile
,
-
1
,
info
->
dbgfile
,
ARRAY_SIZE
(
info
->
dbgfile
),
NULL
,
NULL
);
WideCharToMultiByte
(
CP_ACP
,
0
,
infoW
.
pdbfile
,
-
1
,
info
->
pdbfile
,
ARRAY_SIZE
(
info
->
pdbfile
),
NULL
,
NULL
);
info
->
guid
=
infoW
.
guid
;
info
->
sig
=
infoW
.
sig
;
info
->
age
=
infoW
.
age
;
}
return
ret
;
}
/******************************************************************
* SymSrvGetFileIndexInfoW (DBGHELP.@)
*
*/
BOOL
WINAPI
SymSrvGetFileIndexInfoW
(
const
WCHAR
*
file
,
SYMSRV_INDEX_INFOW
*
info
,
DWORD
flags
)
{
FIXME
(
"(%s, %p, 0x%08lx): stub!
\n
"
,
debugstr_w
(
file
),
info
,
flags
);
if
(
info
->
sizeofstruct
<
sizeof
(
*
info
))
{
SetLastError
(
ERROR_INVALID_PARAMETER
);
return
FALSE
;
}
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
/******************************************************************
* SymSrvGetFileIndexes (DBGHELP.@)
*
*/
BOOL
WINAPI
SymSrvGetFileIndexes
(
PCSTR
file
,
GUID
*
guid
,
PDWORD
pdw1
,
PDWORD
pdw2
,
DWORD
flags
)
{
WCHAR
fileW
[
MAX_PATH
];
TRACE
(
"(%s, %p, %p, %p, 0x%08lx)
\n
"
,
debugstr_a
(
file
),
guid
,
pdw1
,
pdw2
,
flags
);
MultiByteToWideChar
(
CP_ACP
,
0
,
file
,
-
1
,
fileW
,
ARRAY_SIZE
(
fileW
));
return
SymSrvGetFileIndexesW
(
fileW
,
guid
,
pdw1
,
pdw2
,
flags
);
}
/******************************************************************
* SymSrvGetFileIndexesW (DBGHELP.@)
*
*/
BOOL
WINAPI
SymSrvGetFileIndexesW
(
PCWSTR
file
,
GUID
*
guid
,
PDWORD
pdw1
,
PDWORD
pdw2
,
DWORD
flags
)
{
FIXME
(
"(%s, %p, %p, %p, 0x%08lx): stub!
\n
"
,
debugstr_w
(
file
),
guid
,
pdw1
,
pdw2
,
flags
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
dlls/dbghelp/symbol.c
View file @
1f437ed8
...
...
@@ -2851,14 +2851,3 @@ BOOL WINAPI SymQueryInlineTrace(HANDLE hProcess, DWORD64 StartAddress, DWORD Sta
}
return
TRUE
;
}
/******************************************************************
* SymSrvGetFileIndexInfo (DBGHELP.@)
*
*/
BOOL
WINAPI
SymSrvGetFileIndexInfo
(
const
char
*
file
,
SYMSRV_INDEX_INFO
*
info
,
DWORD
flags
)
{
FIXME
(
"(%s, %p, 0x%08lx): stub!
\n
"
,
debugstr_a
(
file
),
info
,
flags
);
SetLastError
(
ERROR_CALL_NOT_IMPLEMENTED
);
return
FALSE
;
}
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