Implemented the int21 LFN rename file function.

This commit is contained in:
Andreas Mohr 2001-02-12 01:22:26 +00:00 committed by Alexandre Julliard
parent a3fca2a933
commit 82b517deac
1 changed files with 15 additions and 7 deletions

View File

@ -2322,9 +2322,17 @@ void WINAPI DOS3Call( CONTEXT86 *context )
}
break;
case 0x56: /* Move (rename) file */
FIXME("LONG FILENAME - RENAME FILE %s to %s stub\n",
(LPCSTR)CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx),
(LPCSTR)CTX_SEG_OFF_TO_LIN(context, context->SegEs, context->Edi));
{
LPCSTR fn1 = (LPCSTR)CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Edx);
LPCSTR fn2 = (LPCSTR)CTX_SEG_OFF_TO_LIN(context, context->SegEs, context->Edi);
TRACE("LONG FILENAME - RENAME FILE %s to %s\n", fn1, fn2);
if (!MoveFileA(fn1, fn2))
{
SET_CFLAG(context);
AL_reg(context) = GetLastError();
}
}
break;
default:
FIXME("Unimplemented long file name function:\n");
INT_BARF( context, 0x21 );