Fix dlls/ntdll/tests/rtl.c compilation with the PSDK
Francois Gouget
fgouget at free.fr
Wed Aug 10 07:40:15 CDT 2005
Even the Windows 2003 SP1 PSDK does not define the RTL_HANDLE and
RTL_HANDLE_TABLE types so we will need to define them ourselves if not
using Wine's winternl.h header.
Changelog:
* dlls/ntdll/tests/rtl.c
Francois Gouget <fgouget at free.fr>
Define RTL_HANDLE and RTL_HANDLE_TABLE if not using Wine's winternl.h
header. Fixes the compilation with the PSDK.
--
Francois Gouget fgouget at free.fr http://fgouget.free.fr/
Computers are like airconditioners
They stop working properly if you open WINDOWS
-------------- next part --------------
Index: dlls/ntdll/tests/rtl.c
===================================================================
RCS file: /var/cvs/wine/dlls/ntdll/tests/rtl.c,v
retrieving revision 1.15
diff -u -p -r1.15 rtl.c
--- dlls/ntdll/tests/rtl.c 16 Jun 2005 15:52:44 -0000 1.15
+++ dlls/ntdll/tests/rtl.c 28 Jul 2005 13:39:02 -0000
@@ -25,6 +25,26 @@
#include "ntdll_test.h"
+#ifndef __WINE_WINTERNL_H
+
+typedef struct _RTL_HANDLE
+{
+ struct _RTL_HANDLE * Next;
+} RTL_HANDLE;
+
+typedef struct _RTL_HANDLE_TABLE
+{
+ ULONG MaxHandleCount;
+ ULONG HandleSize;
+ ULONG Unused[2];
+ PVOID NextFree;
+ PVOID FirstHandle;
+ PVOID ReservedMemory;
+ PVOID MaxHandle;
+} RTL_HANDLE_TABLE;
+
+#endif
+
/* Function ptrs for ntdll calls */
static HMODULE hntdll = 0;
static SIZE_T (WINAPI *pRtlCompareMemory)(LPCVOID,LPCVOID,SIZE_T);
More information about the wine-patches
mailing list