Andrew Talbot : dbghelp: Write-strings warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Wed Jun 7 09:13:41 CDT 2006


Module: wine
Branch: refs/heads/master
Commit: 8527f91043f6293c0c2731a36efe57196e6dcf86
URL:    http://source.winehq.org/git/?p=wine.git;a=commit;h=8527f91043f6293c0c2731a36efe57196e6dcf86

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Thu Jun  1 20:02:44 2006 +0100

dbghelp: Write-strings warning fix.

---

 dlls/dbghelp/source.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/dbghelp/source.c b/dlls/dbghelp/source.c
index e96307a..fcfad56 100644
--- a/dlls/dbghelp/source.c
+++ b/dlls/dbghelp/source.c
@@ -155,7 +155,7 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess
     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 @@ BOOL WINAPI SymEnumLines(HANDLE hProcess
         {
             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-cvs mailing list