NetAPI32 fixes
Steven Edwards
steven_ed4153 at yahoo.com
Tue Feb 10 10:44:54 CST 2004
Changelog: Porting Fixes for Mingw/MSVC
__________________________________
Do you Yahoo!?
Yahoo! Finance: Get your refund fast by filing online.
http://taxes.yahoo.com/filing.html
-------------- next part --------------
Index: include/lmstats.h
===================================================================
RCS file: /home/wine/wine/include/lmstats.h,v
retrieving revision 1.1
diff -u -r1.1 lmstats.h
--- include/lmstats.h 11 Sep 2003 03:09:19 -0000 1.1
+++ include/lmstats.h 10 Feb 2004 16:38:25 -0000
@@ -88,7 +88,7 @@
DWORD sts0_bigbufneed;
} STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
-NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR *server, LPWSTR *service, DWORD level,
+NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level,
DWORD options, LPBYTE *bufptr);
#ifdef __cplusplus
Index: dlls/netapi32/nbnamecache.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/nbnamecache.c,v
retrieving revision 1.1
diff -u -r1.1 nbnamecache.c
--- dlls/netapi32/nbnamecache.c 29 Nov 2003 00:19:19 -0000 1.1
+++ dlls/netapi32/nbnamecache.c 10 Feb 2004 16:38:44 -0000
@@ -19,7 +19,10 @@
* rather more efficient than not having a name cache at all.
*/
+#include "config.h"
+#include "wine/port.h"
#include "wine/debug.h"
+
#include "nbnamecache.h"
WINE_DEFAULT_DEBUG_CHANNEL(netbios);
Index: dlls/netapi32/nbnamecache.h
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/nbnamecache.h,v
retrieving revision 1.1
diff -u -r1.1 nbnamecache.h
--- dlls/netapi32/nbnamecache.h 29 Nov 2003 00:19:19 -0000 1.1
+++ dlls/netapi32/nbnamecache.h 10 Feb 2004 16:38:44 -0000
@@ -17,6 +17,9 @@
#ifndef __WINE_NBNAMECACHE_H
#define __WINE_NBNAMECACHE_H
+#include <stdarg.h>
+
+#include "windef.h"
#include "winbase.h"
#include "nb30.h"
Index: dlls/netapi32/netapi32.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/netapi32.c,v
retrieving revision 1.17
diff -u -r1.17 netapi32.c
--- dlls/netapi32/netapi32.c 29 Nov 2003 00:19:19 -0000 1.17
+++ dlls/netapi32/netapi32.c 10 Feb 2004 16:38:47 -0000
@@ -70,7 +70,7 @@
/************************************************************
* NetStatisticsGet (NETAPI32.@)
*/
-NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR *server, LPWSTR *service,
+NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service,
DWORD level, DWORD options,
LPBYTE *bufptr)
{
Index: dlls/netapi32/wksta.c
===================================================================
RCS file: /home/wine/wine/dlls/netapi32/wksta.c,v
retrieving revision 1.13
diff -u -r1.13 wksta.c
--- dlls/netapi32/wksta.c 11 Dec 2003 04:26:38 -0000 1.13
+++ dlls/netapi32/wksta.c 10 Feb 2004 16:38:49 -0000
@@ -18,10 +18,14 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
+#include "config.h"
+#include "wine/port.h"
+
#include <stdarg.h>
#include <stdlib.h>
#include "windef.h"
#include "winbase.h"
+#include "winsock2.h"
#include "nb30.h"
#include "lmcons.h"
#include "lmapibuf.h"
@@ -234,9 +238,9 @@
}
NET_API_STATUS WINAPI
-NetWkstaTransportEnum(LPCWSTR ServerName, DWORD level, LPBYTE* pbuf,
+NetWkstaTransportEnum(LPWSTR ServerName, DWORD level, PBYTE* pbuf,
DWORD prefmaxlen, LPDWORD read_entries,
- LPDWORD total_entries, LPDWORD hresume)
+ PDWORD total_entries, PDWORD hresume)
{
NET_API_STATUS ret;
More information about the wine-patches
mailing list