dbghelp: Write-strings warning fix
Andrew Talbot
Andrew.Talbot at talbotville.com
Thu Jun 1 14:02:44 CDT 2006
Changelog:
dbghelp: Write-strings warning fix.
diff -urN a/dlls/dbghelp/source.c b/dlls/dbghelp/source.c
--- a/dlls/dbghelp/source.c 2006-05-23 17:24:35.000000000 +0100
+++ b/dlls/dbghelp/source.c 2006-06-01 19:10:20.000000000 +0100
@@ -155,7 +155,7 @@
struct line_info* dli;
void* ptr;
SRCCODEINFO sci;
- char* file;
+ const char* file;
if (!cb) return FALSE;
pcs = process_find_by_handle(hProcess);
@@ -186,7 +186,7 @@
{
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 = "";
strcpy(sci.FileName, file);
}
More information about the wine-patches
mailing list