MoveFileW bug?

Alberto Massari amassari at progress.com
Tue Feb 25 07:42:13 CST 2003


Hi Roderick,
At 14.32 25/02/2003 +0100, Roderick Colenbrander wrote:
>[...]
>"The MoveFile function will move (rename) either a file or a directory
>(including its children) either in the same directory or across directories.
>The one caveat is that the MoveFile function will fail on directory moves
>when the destination is on a different volume."
>
>The update tool is using something like this: MoveFileW(steam.exe,
>e:\\steam.exe)

If I read it right, MSDN says that you cannot move a *directory* between 
volumes, not a single file (like in this case). So, the check should be 
done only when the source path points to a directory.

Alberto


>So it tries to move a file from c:\steam\steam.exe to e:\steam.exe which
>according to the MSDN docs is not possible. The same works fine on Win2k.
>After hacking MoveFileW to not check if the volumes are different it worked
>fine on Wine too.
>
>What shall we do? Shall we implement the same bugs Windows is doing or 
>shall e
>listen to the docs at MSDN? (I'm sure some tests need to be made)
>
>Roderick Colenbrander





More information about the wine-devel mailing list