Implemented the int21 LFN rename file function.
This commit is contained in:
parent
a3fca2a933
commit
82b517deac
|
@ -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 );
|
||||
|
|
Loading…
Reference in New Issue