Author: miguel
Date: 2007-07-22 18:38:40 -0400 (Sun, 22 Jul 2007)
New Revision: 82454

Modified:
   trunk/mono/mono/metadata/appdomain.c
Log:
Delete the file before the copy, this might fix 82083

Modified: trunk/mono/mono/metadata/appdomain.c
===================================================================
--- trunk/mono/mono/metadata/appdomain.c        2007-07-22 20:13:15 UTC (rev 
82453)
+++ trunk/mono/mono/metadata/appdomain.c        2007-07-22 22:38:40 UTC (rev 
82454)
@@ -819,6 +819,7 @@
        strcpy (target + targetlen - tail_len, extension);
        dest = g_utf8_to_utf16 (target, strlen (target), NULL, NULL, NULL);
        
+       DeleteFile (dest);
        copy_result = CopyFile (orig, dest, FALSE);
        g_free (orig);
        g_free (dest);
@@ -970,6 +971,7 @@
 
        orig = g_utf8_to_utf16 (filename, strlen (filename), NULL, NULL, NULL);
        dest = g_utf8_to_utf16 (shadow, strlen (shadow), NULL, NULL, NULL);
+       DeleteFile (dest);
        copy_result = CopyFile (orig, dest, FALSE);
        g_free (dest);
        g_free (orig);

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to