mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 00:05:44 +00:00
[SHLWAPI]: Remove some Wine madness. CORE-8936.
svn path=/trunk/; revision=66538
This commit is contained in:
parent
1597cd2a51
commit
811fcc6a66
1 changed files with 3 additions and 20 deletions
|
@ -21,22 +21,7 @@
|
||||||
|
|
||||||
#include "precomp.h"
|
#include "precomp.h"
|
||||||
|
|
||||||
/* Get a function pointer from a DLL handle */
|
int WINAPI IsNetDrive(int drive);
|
||||||
#define GET_FUNC(func, module, name, fail) \
|
|
||||||
do { \
|
|
||||||
if (!func) { \
|
|
||||||
if (!SHLWAPI_h##module && !(SHLWAPI_h##module = LoadLibraryA(#module ".dll"))) return fail; \
|
|
||||||
func = (fn##func)GetProcAddress(SHLWAPI_h##module, name); \
|
|
||||||
if (!func) return fail; \
|
|
||||||
} \
|
|
||||||
} while (0)
|
|
||||||
|
|
||||||
/* DLL handles for late bound calls */
|
|
||||||
static HMODULE SHLWAPI_hshell32;
|
|
||||||
|
|
||||||
/* Function pointers for GET_FUNC macro; these need to be global because of gcc bug */
|
|
||||||
typedef BOOL (WINAPI *fnpIsNetDrive)(int);
|
|
||||||
static fnpIsNetDrive pIsNetDrive;
|
|
||||||
|
|
||||||
HRESULT WINAPI SHGetWebFolderFilePathW(LPCWSTR,LPWSTR,DWORD);
|
HRESULT WINAPI SHGetWebFolderFilePathW(LPCWSTR,LPWSTR,DWORD);
|
||||||
|
|
||||||
|
@ -3699,8 +3684,7 @@ BOOL WINAPI PathIsNetworkPathA(LPCSTR lpszPath)
|
||||||
dwDriveNum = PathGetDriveNumberA(lpszPath);
|
dwDriveNum = PathGetDriveNumberA(lpszPath);
|
||||||
if (dwDriveNum == -1)
|
if (dwDriveNum == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
|
return IsNetDrive(dwDriveNum);
|
||||||
return pIsNetDrive(dwDriveNum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
@ -3721,8 +3705,7 @@ BOOL WINAPI PathIsNetworkPathW(LPCWSTR lpszPath)
|
||||||
dwDriveNum = PathGetDriveNumberW(lpszPath);
|
dwDriveNum = PathGetDriveNumberW(lpszPath);
|
||||||
if (dwDriveNum == -1)
|
if (dwDriveNum == -1)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
|
return IsNetDrive(dwDriveNum);
|
||||||
return pIsNetDrive(dwDriveNum);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue