[cvsnt] Re: cvs [server aborted]: cannot rename file

Bryan Kuhn bryan at infinityward.com
Thu Oct 28 22:08:43 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


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 cvsnt downloads at march-hare.com @CVSNT on Twitter CVSNT on Facebook
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt https://www.march-hare.com/cvspro/en.asp#downcvs




More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook