Implement DOS7 canonicalize path function as a conversion to short

file name.
This commit is contained in:
Jukka Heinonen 2004-04-26 20:05:30 +00:00 committed by Alexandre Julliard
parent 5ffac0988e
commit 6844c3b59b
1 changed files with 6 additions and 0 deletions

View File

@ -3096,6 +3096,12 @@ static void INT21_LongFilename( CONTEXT86 *context )
switch (CL_reg(context))
{
case 0x00: /* "truename" - Canonicalize path */
/*
* FIXME: This is not 100% equal to 0x01 case,
* if you fix this, fix int21 subfunction 0x60, too.
*/
case 0x01: /* Get short filename or path */
MultiByteToWideChar(CP_OEMCP, 0, CTX_SEG_OFF_TO_LIN(context, context->SegDs, context->Esi), -1, pathW, MAX_PATH);
if (!GetShortPathNameW(pathW, res, 67))