include: Consolidate duplicate declarations of WNetGetLastErrorA, WNetGetLastErrorW and definition of WNetGetLastError.

Gerald Pfeifer gerald at pfeifer.com
Sat Jan 1 07:31:56 CST 2011


commit 674ce99320223f8737c2646b56227b7b0ea32c19
Author: Dmitry Timoshkov <dmitry at codeweavers.com>
Date:   Wed Mar 28 15:51:46 2007 +0900

   include: Add some API prototypes to appropriate header files, fix some prototypes.

went a bit overboard it seems:

% grep GetLastError include/winnetwk.
  DWORD WINAPI WNetGetLastErrorA(LPDWORD,LPSTR,DWORD,LPSTR,DWORD);
  DWORD WINAPI WNetGetLastErrorW(LPDWORD,LPWSTR,DWORD,LPWSTR,DWORD);
  #define      WNetGetLastError WINELIB_NAME_AW(WNetGetLastError)
  DWORD WINAPI WNetGetLastErrorA(LPDWORD,LPSTR,DWORD,LPSTR,DWORD);
  DWORD WINAPI WNetGetLastErrorW(LPDWORD,LPWSTR,DWORD,LPWSTR,DWORD);
  #define      WNetGetLastError WINELIB_NAME_AW(WNetGetLastError)

This patch removes this redundancy.

Gerald
---
 include/winnetwk.h |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/include/winnetwk.h b/include/winnetwk.h
index b69c0eb..b5c2d93 100644
--- a/include/winnetwk.h
+++ b/include/winnetwk.h
@@ -312,10 +312,6 @@ DWORD WINAPI WNetGetNetworkInformationW(LPCWSTR,LPNETINFOSTRUCT);
  *  Status codes
  */
 
-DWORD WINAPI WNetGetLastErrorA(LPDWORD,LPSTR,DWORD,LPSTR,DWORD);
-DWORD WINAPI WNetGetLastErrorW(LPDWORD,LPWSTR,DWORD,LPWSTR,DWORD);
-#define      WNetGetLastError WINELIB_NAME_AW(WNetGetLastError)
-
 #define WN_SUCCESS                      NO_ERROR
 #define WN_NO_ERROR                     NO_ERROR
 #define WN_NOT_SUPPORTED                ERROR_NOT_SUPPORTED
-- 
1.7.2.2



More information about the wine-patches mailing list