Ignore:
Timestamp:
May 9, 2000, 8:56:59 PM (25 years ago)
Author:
sandervl
Message:

lots of changes/fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/environ.cpp

    r2802 r3501  
    1 /* $Id: environ.cpp,v 1.2 2000-02-16 14:25:39 sandervl Exp $ */
     1/* $Id: environ.cpp,v 1.3 2000-05-09 18:56:08 sandervl Exp $ */
    22
    33/*
     
    142142static LPCSTR ENV_FindVariable( LPCSTR env, LPCSTR name, INT len )
    143143{
     144//temporary hack for MS Office 2000 install
     145#if 1
     146    char tempvar[] = "tmp";
     147
     148    if(len == 4 && !lstrncmpiA(name, "TEMP", 4)) {
     149        name = tempvar;
     150        len = 3;
     151    }
     152#endif
     153
    144154    while (*env)
    145155    {
     
    174184    LPCSTR p, var;
    175185
    176     dprintf(("KERNEL32:ExpandEnvironmentStringsA(%08x,%08x,%08x) not implemented\n",
     186    dprintf(("KERNEL32:ExpandEnvironmentStringsA '%s', %08x, %08x",
    177187              src, dst, count
    178188              ));
     
    230240        *dst = '\0';
    231241    }
     242    dprintf(("KERNEL32:ExpandEnvironmentStringsA returned %s %d",
     243              dst, total_size));
    232244    return total_size;
    233245}
Note: See TracChangeset for help on using the changeset viewer.