Diff of /area.cpp [c88f15] .. [3c45d4]  Maximize  Restore

  Switch to side-by-side view

--- a/area.cpp
+++ b/area.cpp
@@ -472,7 +472,7 @@
     return -4;
   }
   key+=suffix;
-  filepath=bgfolder+"override\\"+key+".BMP";
+  filepath="override\\"+key+".BMP";
   tmpath=bgfolder+"override\\"+key+".TMP";
   fhandle=open(tmpath, O_BINARY|O_RDWR|O_CREAT|O_TRUNC,S_IREAD|S_IWRITE);
   if(fhandle<1)
@@ -533,8 +533,8 @@
   close(fhandle);
   if(!ret)
   {
-    unlink(filepath);
-    rename(tmpath,filepath);
+    unlink(bgfolder+filepath);
+    rename(tmpath,bgfolder+filepath);
     UpdateIEResource(key,REF_BMP,filepath,fullsize);
   }
   return ret;

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks