wineboot: Cast-qual warning fix

Andrew Talbot Andrew.Talbot at talbotville.com
Fri Oct 6 14:34:29 CDT 2006


Changelog:
    wineboot: Cast-qual warning fix.

diff -urN a/programs/wineboot/wineboot.c b/programs/wineboot/wineboot.c
--- a/programs/wineboot/wineboot.c	2006-10-03 17:30:56.000000000 +0100
+++ b/programs/wineboot/wineboot.c	2006-10-06 20:31:30.000000000 +0100
@@ -547,12 +547,12 @@
 {
     WIN32_FIND_DATA finddata;
     LPSTR custom_dllcache = NULL;
-    static const CHAR default_dllcache[] = "C:\\Windows\\System32\\dllcache";
+    static CHAR default_dllcache[] = "C:\\Windows\\System32\\dllcache";
     HANDLE find_handle;
     BOOL find_rc;
     DWORD rc;
     HKEY hkey;
-    LPCSTR dllcache;
+    LPSTR dllcache;
     CHAR find_string[MAX_PATH];
     CHAR windowsdir[MAX_PATH];
 
@@ -574,7 +574,7 @@
         dllcache = custom_dllcache;
     else
         dllcache = default_dllcache;
-               
+
     strcpy(find_string,dllcache);
     strcat(find_string,"\\*.*");
 
@@ -603,7 +603,7 @@
                 windowsdir, currentpath, &sz, targetpath,&sz2);
         sz = MAX_PATH;
         rc = VerInstallFile(0, finddata.cFileName, finddata.cFileName,
-                    (LPSTR) dllcache, targetpath, currentpath, tempfile,&sz);
+                            dllcache, targetpath, currentpath, tempfile,&sz);
         if (rc != ERROR_SUCCESS)
         {
             WINE_ERR("WFP: %s error 0x%x\n",finddata.cFileName,rc);



More information about the wine-patches mailing list