Implement DOS7 canonicalize path function as a conversion to short
file name.
This commit is contained in:
parent
5ffac0988e
commit
6844c3b59b
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue