United Devices Client

gerard patel nomailthankyoug.patel at wanadoo.fr
Fri Mar 30 06:44:57 CST 2001


On Fri, 30 Mar 2001 12:07:36 GMT, illie <illie at home.com> wrote:

<snip>
>Still no success. 

Argh :-/

That's my problem with timed connections to the Internet, I am
not taking much time to think to what I code.

Try this one instead

Gerard

--- storage32.c.orig    Wed Feb 28 06:31:03 2001
+++ storage32.c Fri Mar 30 14:41:43 2001
@@ -5269,6 +5269,7 @@
   DWORD          creationMode;
   DWORD          fileAttributes;
   WCHAR          tempFileName[MAX_PATH];
+  BOOL           isTemp = FALSE;
 
   TRACE("(%s, %lx, %ld, %p)\n",
        debugstr_w(pwcsName), grfMode,
@@ -5294,6 +5295,8 @@
     WCHAR tempPath[MAX_PATH];
     WCHAR prefix[] = { 'S', 'T', 'O', 0 };
 
+    isTemp = TRUE;
+
     memset(tempPath, 0, sizeof(tempPath));
     memset(tempFileName, 0, sizeof(tempFileName));
 
@@ -5312,6 +5315,9 @@
   shareMode    = GetShareModeFromSTGM(grfMode);
   accessMode   = GetAccessModeFromSTGM(grfMode);
   creationMode = GetCreationModeFromSTGM(grfMode);
+
+  if (isTemp)
+    creationMode = TRUNCATE_EXISTING;
 
   if (grfMode & STGM_DELETEONRELEASE)
     fileAttributes = FILE_FLAG_RANDOM_ACCESS |
FILE_FLAG_DELETE_ON_CLOSE;  






More information about the wine-users mailing list