[cvsnt] Re: cvs [server aborted]: cannot rename file
Bryan Kuhn
bryan at infinityward.com
Thu Oct 28 22:08:43 BST 2004
It's not actually trying the same file, the input arguments were correct. When I moved the pointer back to run the function again it actually worked the second time.
Thursday, October 28, 2004, 1:09:16 PM, Torsten Martinsen wrote:
> Bryan Kuhn wrote:
>>MoveFileExA returned 0, failing
>>GetLastError returned 0, meaning no error
>>
>>
> Quite strange. I just did a quick test, and MoveFileEx() seems to work
> fine even if arg 1 and arg 2 are the same.
> But I got an idea: Since the errors seems to happen only when renaming a
> file to the same name, and since this is a no-op anyway, could the
> solution not be a simple "if (strcmp(src, dst))" before the MoveFileEx()
> call?
> -Torsten
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
More information about the cvsnt
mailing list