File tree Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Expand file tree Collapse file tree 1 file changed +24
-2
lines changed Original file line number Diff line number Diff line change @@ -1952,8 +1952,30 @@ RtlQueryHeapInformation(HANDLE HeapHandle,
1952
1952
SIZE_T HeapInformationLength OPTIONAL ,
1953
1953
PSIZE_T ReturnLength OPTIONAL )
1954
1954
{
1955
- UNIMPLEMENTED ;
1956
- return 0 ;
1955
+ HEAP * heapPtr ;
1956
+
1957
+ heapPtr = HEAP_GetPtr (HeapHandle );
1958
+ if (!heapPtr )
1959
+ {
1960
+ RtlSetLastWin32ErrorAndNtStatusFromNtStatus ( STATUS_INVALID_HANDLE );
1961
+ return FALSE;
1962
+ }
1963
+
1964
+ UNIMPLEMENTED
1965
+
1966
+ switch (HeapInformationClass )
1967
+ {
1968
+ case HeapCompatibilityInformation :
1969
+ if (ReturnLength ) * ReturnLength = sizeof (ULONG );
1970
+
1971
+ if (HeapInformationLength < sizeof (ULONG ))
1972
+ return STATUS_BUFFER_TOO_SMALL ;
1973
+
1974
+ * (ULONG * )HeapInformation = 0 ; /* standard heap */
1975
+ return STATUS_SUCCESS ;
1976
+ default :
1977
+ return STATUS_INVALID_INFO_CLASS ;
1978
+ }
1957
1979
}
1958
1980
1959
1981
DWORD
You can’t perform that action at this time.
0 commit comments