[prev in list] [next in list] [prev in thread] [next in thread]
List: wine-patches
Subject: [2/2] ntdll: add stub for RtlCompressBuffer (try 2)
From: ricardo filipe <ricardo_barbano () hotmail ! com>
Date: 2008-12-31 15:42:01
Message-ID: BAY118-W553B26B99438246507119283E40 () phx ! gbl
[Download RAW message or body]
_________________________________________________________________
Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy!
http://spaces.live.com/spacesapi.aspx?wx_action=create&wx_url=/friends.aspx&mkt=en-us
["0003-ntdll-add-stub-for-RtlCompressBuffer.txt" (text/plain)]
From 8ff62b540591217feead7b3142418eda99436ef2 Mon Sep 17 00:00:00 2001
From: Ricardo Filipe <ricardo_barbano@hotmail.com>
Date: Tue, 30 Dec 2008 07:32:28 +0000
Subject: ntdll: add stub for RtlCompressBuffer
---
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 f0aabe6..2b13286 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 99cd7ee..e5f5c7b 100644
--- a/dlls/ntdll/rtl.c
+++ b/dlls/ntdll/rtl.c
@@ -1079,3 +1079,16 @@ 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 47beee4..d0f7b6b 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -2246,6 +2246,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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic