Ignore:
Timestamp:
Apr 28, 2001, 3:33:49 PM (24 years ago)
Author:
sandervl
Message:

resync with latest wine

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shlwapi/path.c

    r4081 r5618  
    11/*
    22 * Path Functions
    3  *
    4  * Note: Odin changes marked by #ifdef __WIN32OS2__
    5  */
    6 
     3 */
    74#ifdef __WIN32OS2__
    85#include <odin.h>
     
    1714
    1815#include <heapstring.h>
     16#include <wine\undocshell.h>
    1917#endif
    2018
     
    2422#include "winerror.h"
    2523#include "wine/unicode.h"
    26 #include "wine/undocshell.h"
     24#include "winbase.h"
     25#include "wingdi.h"
     26#include "winuser.h"
    2727#include "shlwapi.h"
    2828#include "debugtools.h"
     29
    2930
    3031DEFAULT_DEBUG_CHANNEL(shell);
     
    211212LPWSTR WINAPI PathBuildRootW(LPWSTR lpszPath, int drive)
    212213{
     214        lpszPath[0] = 'A' + drive;
     215        lpszPath[1] = ':';
     216        lpszPath[2] = '\\';
     217        lpszPath[3] = 0;
    213218        TRACE("%p %i\n",debugstr_w(lpszPath), drive);
    214 
    215         lstrcpyAtoW(lpszPath,"A:\\");
    216         lpszPath[0]+=drive;
    217219        return lpszPath;
    218220}
     
    10701072BOOL WINAPI PathMatchSpecW(LPCWSTR name, LPCWSTR mask)
    10711073{
    1072         WCHAR stemp[4];
     1074    static const WCHAR stemp[] = { '*','.','*',0 };
    10731075        TRACE("%s %s\n",debugstr_w(name),debugstr_w(mask));
    10741076
    1075         lstrcpyAtoW(stemp,"*.*");       
    10761077        if (!lstrcmpW( mask, stemp )) return 1;   /* we don't require a period */
    10771078
Note: See TracChangeset for help on using the changeset viewer.