Commit 8527f910 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

dbghelp: Write-strings warning fix.

parent ac46320f
...@@ -155,7 +155,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland, ...@@ -155,7 +155,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland,
struct line_info* dli; struct line_info* dli;
void* ptr; void* ptr;
SRCCODEINFO sci; SRCCODEINFO sci;
char* file; const char* file;
if (!cb) return FALSE; if (!cb) return FALSE;
pcs = process_find_by_handle(hProcess); pcs = process_find_by_handle(hProcess);
...@@ -186,7 +186,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland, ...@@ -186,7 +186,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess, ULONG64 base, PCSTR compiland,
{ {
if (dli->is_source_file) if (dli->is_source_file)
{ {
file = (char*)source_get(pair.effective, dli->u.source_file); file = source_get(pair.effective, dli->u.source_file);
if (regexec(&re, file, 0, NULL, 0) != 0) file = ""; if (regexec(&re, file, 0, NULL, 0) != 0) file = "";
strcpy(sci.FileName, file); strcpy(sci.FileName, file);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment