ntdll: add stub for RtlCompressBuffer

Ricardo Filipe ricardo_barbano at hotmail.com
Mon Jan 26 10:50:19 CST 2009


used information from: http://msdn.microsoft.com/en-us/library/bb981783.aspx
one more stub for http://bugs.winehq.org/show_bug.cgi?id=9152
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-patches/attachments/20090126/8146e5a6/attachment.htm 
-------------- next part --------------
From bca516fe2f31404fb3a1c975dfb09b560e3a9917 Mon Sep 17 00:00:00 2001
From: Ricardo Filipe <ricardo_barbano at hotmail.com>
Date: Sat, 24 Jan 2009 14:40:01 +0000
Subject: ntdll: add stub for RtlCompressBuffer

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

diff --git a/dlls/ntdll/ntdll.spec b/dlls/ntdll/ntdll.spec
index 4ea9ec9..8e0058d 100644
--- a/dlls/ntdll/ntdll.spec
+++ b/dlls/ntdll/ntdll.spec
@@ -450,7 +450,7 @@
 @ stdcall RtlCompareMemoryUlong(ptr long long)
 @ stdcall RtlCompareString(ptr ptr long)
 @ stdcall RtlCompareUnicodeString (ptr ptr long)
-@ stub RtlCompressBuffer
+@ stdcall RtlCompressBuffer(long ptr long ptr long long ptr ptr)
 @ stdcall RtlComputeCrc32(long ptr long)
 # @ stub RtlComputeImportTableHash
 # @ stub RtlComputePrivatizedDllName_U
diff --git a/dlls/ntdll/rtl.c b/dlls/ntdll/rtl.c
index eb33cca..3f2f27e 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -1080,3 +1080,18 @@ NTSTATUS WINAPI RtlGetCompressionWorkSpaceSize(USHORT CompressionFormatAndEngine
 
     return STATUS_NOT_IMPLEMENTED;
 }
+
+/******************************************************************************
+ *  RtlCompressBuffer		[NTDLL.@]
+ */
+NTSTATUS WINAPI RtlCompressBuffer(USHORT CompressionFormatAndEngine, PUCHAR UncompressedBuffer,
+                                  ULONG UncompressedBufferSize, PUCHAR CompressedBuffer,
+                                  ULONG CompressedBufferSize, ULONG UncompressedChunkSize,
+                                  PULONG FinalCompressedSize, PVOID WorkSpace)
+{
+    FIXME("0x%04x, %p, %u, %p, %u, %u, %p, %p :stub\n", CompressionFormatAndEngine, UncompressedBuffer,
+         UncompressedBufferSize, CompressedBuffer, CompressedBufferSize, UncompressedChunkSize,
+         FinalCompressedSize, WorkSpace);
+
+    return STATUS_NOT_IMPLEMENTED;
+}
diff --git a/include/winternl.h b/include/winternl.h
index b3f980e..c7322f2 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -2247,6 +2247,7 @@ NTSYSAPI PDEBUG_BUFFER WINAPI RtlCreateQueryDebugBuffer(ULONG,BOOLEAN);
 NTSYSAPI ULONG     WINAPI RtlCompactHeap(HANDLE,ULONG);
 NTSYSAPI LONG      WINAPI RtlCompareString(const STRING*,const STRING*,BOOLEAN);
 NTSYSAPI LONG      WINAPI RtlCompareUnicodeString(const UNICODE_STRING*,const UNICODE_STRING*,BOOLEAN);
+NTSYSAPI NTSTATUS  WINAPI RtlCompressBuffer(USHORT,PUCHAR,ULONG,PUCHAR,ULONG,ULONG,PULONG,PVOID);
 NTSYSAPI DWORD     WINAPI RtlComputeCrc32(DWORD,const BYTE*,INT);
 NTSYSAPI NTSTATUS  WINAPI RtlConvertSidToUnicodeString(PUNICODE_STRING,PSID,BOOLEAN);
 NTSYSAPI LONGLONG  WINAPI RtlConvertLongToLargeInteger(LONG);
-- 
1.5.6.3


More information about the wine-patches mailing list