Module: wine Branch: master Commit: 63a5cec8cd0d7bb9c3520e8b3a977e303a6309cc URL: http://source.winehq.org/git/wine.git/?a=commit;h=63a5cec8cd0d7bb9c3520e8b3a...
Author: Ricardo Filipe ricardo_barbano@hotmail.com Date: Sat Jan 24 14:40:01 2009 +0000
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 c0185b1..5a014f4 100644 --- a/include/winternl.h +++ b/include/winternl.h @@ -2251,6 +2251,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);