Andrew Talbot : winhelp: Write-strings warning fix.

Alexandre Julliard julliard at wine.codeweavers.com
Thu Jul 27 05:42:33 CDT 2006


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

Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date:   Wed Jul 26 20:30:30 2006 +0100

winhelp: Write-strings warning fix.

---

 programs/winhelp/winhelp.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/programs/winhelp/winhelp.c b/programs/winhelp/winhelp.c
index fd4cdd1..bec8a62 100644
--- a/programs/winhelp/winhelp.c
+++ b/programs/winhelp/winhelp.c
@@ -164,11 +164,12 @@ int PASCAL WinMain(HINSTANCE hInstance, 
     MSG                 msg;
     LONG                lHash = 0;
     HLPFILE*            hlpfile;
-    char*               wndname = "main";
+    static CHAR         default_wndname[] = "main";
+    LPSTR               wndname = default_wndname;
     WINHELP_DLL*        dll;
 
     Globals.hInstance = hInstance;
-    
+
     /* Get options */
     while (*cmdline && (*cmdline == ' ' || *cmdline == '-'))
     {




More information about the wine-cvs mailing list