From 6844c3b59b938c31b2972622f322d1a65d732844 Mon Sep 17 00:00:00 2001 From: Jukka Heinonen Date: Mon, 26 Apr 2004 20:05:30 +0000 Subject: [PATCH] Implement DOS7 canonicalize path function as a conversion to short file name. --- dlls/winedos/int21.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c index 2155f136f64..bd7e0def650 100644 --- a/dlls/winedos/int21.c +++ b/dlls/winedos/int21.c @@ -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)) -- 2.11.4.GIT