Simple fix for DOS7 canonicalize path

Jukka Heinonen jhei at iki.fi
Sun Apr 25 10:12:56 CDT 2004


This patch provides partial support for DOS7 canonicalize path
function. Full support would require much more effort, but
this fix is enough to make Red Alert Aftermath installer
working.




Changelog:
  Implement DOS7 canonicalize path function as a conversion
  to short file name.




Index: dlls/winedos/int21.c
===================================================================
RCS file: /home/wine/wine/dlls/winedos/int21.c,v
retrieving revision 1.60
diff -u -r1.60 int21.c
--- dlls/winedos/int21.c	19 Apr 2004 23:11:31 -0000	1.60
+++ dlls/winedos/int21.c	25 Apr 2004 15:03:16 -0000
@@ -3096,6 +3096,12 @@
 
             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))



-- 
Jukka Heinonen <http://www.iki.fi/jhei>



More information about the wine-patches mailing list