Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
9e1f9ec1
Commit
9e1f9ec1
authored
Feb 21, 2007
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 22, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dbghelp: Implemented SearchTreeForFileW.
parent
c0be0032
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
6 deletions
+25
-6
dbghelp.spec
dlls/dbghelp/dbghelp.spec
+2
-2
path.c
dlls/dbghelp/path.c
+22
-4
dbghelp.h
include/dbghelp.h
+1
-0
No files found.
dlls/dbghelp/dbghelp.spec
View file @
9e1f9ec1
...
...
@@ -26,8 +26,8 @@
@ stdcall MapDebugInformation(long str str long)
@ stdcall MiniDumpReadDumpStream(ptr long ptr ptr ptr)
@ stdcall MiniDumpWriteDump(ptr long ptr long long long long)
@ stdcall SearchTreeForFile(str str
s
tr)
@ st
ub SearchTreeForFileW
@ stdcall SearchTreeForFile(str str
p
tr)
@ st
dcall SearchTreeForFileW(wstr wstr ptr)
@ stdcall StackWalk(long long long ptr ptr ptr ptr ptr ptr)
@ stdcall StackWalk64(long long long ptr ptr ptr ptr ptr ptr)
@ stub SymAddSymbol
...
...
dlls/dbghelp/path.c
View file @
9e1f9ec1
...
...
@@ -273,14 +273,32 @@ static BOOL do_search(const char* file, char* buffer, BOOL recurse,
}
/***********************************************************************
* SearchTreeForFileW (DBGHELP.@)
*/
BOOL
WINAPI
SearchTreeForFileW
(
PCWSTR
root
,
PCWSTR
file
,
PWSTR
buffer
)
{
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_w
(
root
),
debugstr_w
(
file
),
buffer
);
strcpyW
(
buffer
,
root
);
return
do_searchW
(
file
,
buffer
,
TRUE
,
NULL
,
NULL
);
}
/***********************************************************************
* SearchTreeForFile (DBGHELP.@)
*/
BOOL
WINAPI
SearchTreeForFile
(
PCSTR
root
,
PCSTR
file
,
PSTR
buffer
)
{
TRACE
(
"(%s, %s, %p)
\n
"
,
debugstr_a
(
root
),
debugstr_a
(
file
),
buffer
);
strcpy
(
buffer
,
root
);
return
do_search
(
file
,
buffer
,
TRUE
,
NULL
,
NULL
);
WCHAR
rootW
[
MAX_PATH
];
WCHAR
fileW
[
MAX_PATH
];
WCHAR
bufferW
[
MAX_PATH
];
BOOL
ret
;
MultiByteToWideChar
(
CP_ACP
,
0
,
root
,
-
1
,
rootW
,
MAX_PATH
);
MultiByteToWideChar
(
CP_ACP
,
0
,
file
,
-
1
,
fileW
,
MAX_PATH
);
ret
=
SearchTreeForFileW
(
rootW
,
fileW
,
bufferW
);
if
(
ret
)
WideCharToMultiByte
(
CP_ACP
,
0
,
bufferW
,
-
1
,
buffer
,
MAX_PATH
,
NULL
,
NULL
);
return
ret
;
}
/******************************************************************
...
...
include/dbghelp.h
View file @
9e1f9ec1
...
...
@@ -1020,6 +1020,7 @@ BOOL WINAPI SymSetSearchPathW(HANDLE, PCWSTR);
DWORD
WINAPI
GetTimestampForLoadedLibrary
(
HMODULE
);
BOOL
WINAPI
MakeSureDirectoryPathExists
(
PCSTR
);
BOOL
WINAPI
SearchTreeForFile
(
PCSTR
,
PCSTR
,
PSTR
);
BOOL
WINAPI
SearchTreeForFileW
(
PCWSTR
,
PCWSTR
,
PWSTR
);
typedef
BOOL
(
CALLBACK
*
PENUMDIRTREE_CALLBACK
)(
LPCSTR
,
PVOID
);
BOOL
WINAPI
EnumDirTree
(
HANDLE
,
PCSTR
,
PCSTR
,
PSTR
,
PENUMDIRTREE_CALLBACK
,
void
*
);
typedef
BOOL
(
CALLBACK
*
PENUMDIRTREE_CALLBACKW
)(
LPCWSTR
,
PVOID
);
...
...
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