Commit 6844c3b5 authored by Jukka Heinonen's avatar Jukka Heinonen Committed by Alexandre Julliard

Implement DOS7 canonicalize path function as a conversion to short

file name.
parent 5ffac098
......@@ -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))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment