[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/file
From:       Christian Ehrlicher <Ch.Ehrlicher () gmx ! de>
Date:       2010-01-06 19:15:00
Message-ID: 1262805300.651451.7797.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1070801 by chehrlic:

looks like nobody every tried to move a file with kio_file to another drive...

 M  +2 -0      file_win.cpp  


--- trunk/KDE/kdelibs/kioslave/file/file_win.cpp #1070800:1070801
@@ -243,6 +243,8 @@
 
         dwFlags = MOVEFILE_REPLACE_EXISTING;
     }
+    // To avoid error 17 - The system cannot move the file to a different disk drive.
+    dwFlags |= MOVEFILE_COPY_ALLOWED;
 
     if ( MoveFileExW( ( LPCWSTR ) _src.filePath().utf16(),
                       ( LPCWSTR ) _dest.filePath().utf16(), dwFlags) == 0 )
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic