mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 12:23:25 +00:00
[WINESYNC] dbghelp: Prevent an invalid memory access when the search path element is empty.
Signed-off-by: Rémi Bernon <[email protected]> Signed-off-by: Alexandre Julliard <[email protected]> wine commit id d263ba97fb7c9ada7ae847909f35cbf5db671216 by Rémi Bernon <[email protected]>
This commit is contained in:
@@ -229,6 +229,7 @@ static BOOL do_searchW(PCWSTR file, PWSTR buffer, BOOL recurse,
|
||||
static const WCHAR S_DotDotW[] = {'.','.','\0'};
|
||||
|
||||
pos = strlenW(buffer);
|
||||
if (pos == 0) return FALSE;
|
||||
if (buffer[pos - 1] != '\\') buffer[pos++] = '\\';
|
||||
strcpyW(buffer + pos, S_AllW);
|
||||
if ((h = FindFirstFileW(buffer, &fd)) == INVALID_HANDLE_VALUE)
|
||||
|
||||
@@ -4,4 +4,4 @@ files:
|
||||
include/dbghelp.h: sdk/include/psdk/dbghelp.h
|
||||
include/wine/mscvpdb.h: sdk/include/reactos/wine/mscvpdb.h
|
||||
tags:
|
||||
wine: 9d3687ad324f866c835c4b73922f859a30e47aee
|
||||
wine: d263ba97fb7c9ada7ae847909f35cbf5db671216
|
||||
|
||||
Reference in New Issue
Block a user