ntdll: add stub for RtlDecompressBuffer

Ricardo Filipe ricardo_barbano at hotmail.com
Tue Jan 27 10:43:18 CST 2009


last stub for http://bugs.winehq.org/show_bug.cgi?id=9152
used information from http://msdn.microsoft.com/en-us/library/bb981784.aspx

after this i can start implementing some of it to fix the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20090127/f6051b21/attachment.htm 
-------------- next part --------------
From 16e2706bc07e514c3ed003365aad22728f5d3231 Mon Sep 17 00:00:00 2001
From: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date: Tue, 27 Jan 2009 16:02:04 +0000
Subject: ntdll: add stub for RtlDecompressBuffer

---
 dlls/ntdll/ntdll.spec |    2 +-
 dlls/ntdll/rtl.c      |   13 +++++++++++++
 include/winternl.h    |    1 +
 3 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 8e0058d..269df8f 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -503,7 +503,7 @@
 @ stub RtlDebugPrintTimes
 @ stdcall RtlDecodePointer(ptr)
 # @ stub RtlDecodeSystemPointer
-@ stub RtlDecompressBuffer
+@ stdcall RtlDecompressBuffer(long ptr long ptr long ptr)
 @ stub RtlDecompressFragment
 @ stub RtlDefaultNpAcl
 @ stub RtlDelete
diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
index 3f2f27e..f84c7c4 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -1095,3 +1095,16 @@ NTSTATUS WINAPI RtlCompressBuffer(USHORT CompressionFormatAndEngine, PUCHAR Unco
 
     return STATUS_NOT_IMPLEMENTED;
 }
+
+/******************************************************************************
+ *  RtlDecompressBuffer		[NTDLL.@]
+ */
+NTSTATUS WINAPI RtlDecompressBuffer(USHORT CompressionFormat, PUCHAR UncompressedBuffer,
+                                    ULONG UncompressedBufferSize, PUCHAR CompressedBuffer,
+                                    ULONG CompressedBufferSize, PULONG FinalUncompressedSize)
+{
+    FIXME("0x%04x, %p, %u, %p, %u, %p :stub\n", CompressionFormat, UncompressedBuffer, UncompressedBufferSize,
+         CompressedBuffer, CompressedBufferSize, FinalUncompressedSize);
+
+    return STATUS_NOT_IMPLEMENTED;
+}
diff --git a/include/winternl.h b/include/winternl.h
index c7322f2..a54f6ac 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -2270,6 +2270,7 @@ NTSYSAPI BOOLEAN   WINAPI RtlCreateUnicodeString(PUNICODE_STRING,LPCWSTR);
 NTSYSAPI BOOLEAN   WINAPI RtlCreateUnicodeStringFromAsciiz(PUNICODE_STRING,LPCSTR);
 NTSYSAPI NTSTATUS  WINAPI RtlCreateUserThread(HANDLE,const SECURITY_DESCRIPTOR*,BOOLEAN,PVOID,SIZE_T,SIZE_T,PRTL_THREAD_START_ROUTINE,void*,HANDLE*,CLIENT_ID*);
 NTSYSAPI void      WINAPI RtlDeactivateActivationContext(DWORD,ULONG_PTR);
+NTSYSAPI NTSTATUS  WINAPI RtlDecompressBuffer(USHORT,PUCHAR,ULONG,PUCHAR,ULONG,PULONG);
 NTSYSAPI NTSTATUS  WINAPI RtlDeleteAce(PACL,DWORD);
 NTSYSAPI NTSTATUS  WINAPI RtlDeleteAtomFromAtomTable(RTL_ATOM_TABLE,RTL_ATOM);
 NTSYSAPI NTSTATUS  WINAPI RtlDeleteCriticalSection(RTL_CRITICAL_SECTION *);
-- 
1.5.6.3


More information about the wine-patches mailing list