Author: hbelusca
Date: Mon Mar  2 01:23:55 2015
New Revision: 66539
URL: 
http://svn.reactos.org/svn/reactos?rev=66539&view=rev
Log:
[SHLWAPI]: Update the ros-diff.
Modified:
    trunk/reactos/dll/win32/shlwapi/shlwapi_ros.diff
Modified: trunk/reactos/dll/win32/shlwapi/shlwapi_ros.diff
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/shlwapi/shlwapi_…
==============================================================================
--- trunk/reactos/dll/win32/shlwapi/shlwapi_ros.diff    [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/shlwapi/shlwapi_ros.diff    [iso-8859-1] Mon Mar  2 01:23:55
2015
@@ -2,6 +2,31 @@
 ===================================================================
 --- path.c     (working copy)
 +++ path.c     (working copy)
+@@ -21,23 +21,8 @@
+
+ #include "precomp.h"
+
+-/* Get a function pointer from a DLL handle */
+-#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)
++int WINAPI IsNetDrive(int drive);
+
+-/* 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);
+
+ static inline WCHAR* heap_strdupAtoW(LPCSTR str)
 @@ -2186,7 +2186,7 @@
  {
    TRACE("(%s)\n",debugstr_a(lpszPath));
@@ -20,3 +45,23 @@
      return TRUE;
    return FALSE;
  }
+@@ -3699,8 +3684,7 @@
+   dwDriveNum = PathGetDriveNumberA(lpszPath);
+   if (dwDriveNum == -1)
+     return FALSE;
+-  GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
+-  return pIsNetDrive(dwDriveNum);
++  return IsNetDrive(dwDriveNum);
+ }
+
+ /*************************************************************************
+@@ -3721,8 +3705,7 @@
+   dwDriveNum = PathGetDriveNumberW(lpszPath);
+   if (dwDriveNum == -1)
+     return FALSE;
+-  GET_FUNC(pIsNetDrive, shell32, (LPCSTR)66, FALSE); /* ord 66 = shell32.IsNetDrive */
+-  return pIsNetDrive(dwDriveNum);
++  return IsNetDrive(dwDriveNum);
+ }
+
+ /*************************************************************************