2 ===================================================================
3 --- path.c (working copy)
4 +++ path.c (working copy)
9 -/* Get a function pointer from a DLL handle */
10 -#define GET_FUNC(func, module, name, fail) \
13 - if (!SHLWAPI_h##module && !(SHLWAPI_h##module = LoadLibraryA(#module ".dll"))) return fail; \
14 - func = (fn##func)GetProcAddress(SHLWAPI_h##module, name); \
15 - if (!func) return fail; \
18 +int WINAPI IsNetDrive(int drive);
20 -/* DLL handles for late bound calls */
21 -static HMODULE SHLWAPI_hshell32;
23 -/* Function pointers for GET_FUNC macro; these need to be global because of gcc bug */
24 -typedef BOOL (WINAPI *fnpIsNetDrive)(int);
25 -static fnpIsNetDrive pIsNetDrive;
27 HRESULT WINAPI SHGetWebFolderFilePathW(LPCWSTR,LPWSTR,DWORD);
29 static inline WCHAR* heap_strdupAtoW(LPCSTR str)
32 TRACE("(%s)\n",debugstr_a(lpszPath));
34 - if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
35 + if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
41 TRACE("(%s)\n",debugstr_w(lpszPath));
43 - if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\'))
44 + if (lpszPath && (lpszPath[0]=='\\') && (lpszPath[1]=='\\') && (lpszPath[2]!='?'))
49 dwDriveNum = PathGetDriveNumberA(lpszPath);
52 - GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
53 - return pIsNetDrive(dwDriveNum);
54 + return IsNetDrive(dwDriveNum);
57 /*************************************************************************
59 dwDriveNum = PathGetDriveNumberW(lpszPath);
62 - GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
63 - return pIsNetDrive(dwDriveNum);
64 + return IsNetDrive(dwDriveNum);
67 /*************************************************************************