Brendan Shanks : include: Add WINE_ALLOC_SIZE attribute to MmAllocate functions.

Alexandre Julliard julliard at winehq.org
Thu May 12 15:55:50 CDT 2022


Module: wine
Branch: master
Commit: 7e973421d1e37f788118254722b058d37e6f1c19
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7e973421d1e37f788118254722b058d37e6f1c19

Author: Brendan Shanks <bshanks at codeweavers.com>
Date:   Wed May 11 15:22:20 2022 -0700

include: Add WINE_ALLOC_SIZE attribute to MmAllocate functions.

Signed-off-by: Brendan Shanks <bshanks at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 include/ddk/wdm.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 2abe5ad574d..b75f452d0da 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1791,8 +1791,8 @@ BOOLEAN   WINAPI KeSignalCallDpcSynchronize(void*);
 NTSTATUS  WINAPI KeWaitForMultipleObjects(ULONG,void*[],WAIT_TYPE,KWAIT_REASON,KPROCESSOR_MODE,BOOLEAN,LARGE_INTEGER*,KWAIT_BLOCK*);
 NTSTATUS  WINAPI KeWaitForSingleObject(void*,KWAIT_REASON,KPROCESSOR_MODE,BOOLEAN,LARGE_INTEGER*);
 
-PVOID     WINAPI MmAllocateContiguousMemory(SIZE_T,PHYSICAL_ADDRESS);
-PVOID     WINAPI MmAllocateNonCachedMemory(SIZE_T);
+PVOID     WINAPI MmAllocateContiguousMemory(SIZE_T,PHYSICAL_ADDRESS) __WINE_ALLOC_SIZE(1);
+PVOID     WINAPI MmAllocateNonCachedMemory(SIZE_T) __WINE_ALLOC_SIZE(1);
 PMDL      WINAPI MmAllocatePagesForMdl(PHYSICAL_ADDRESS,PHYSICAL_ADDRESS,PHYSICAL_ADDRESS,SIZE_T);
 void      WINAPI MmBuildMdlForNonPagedPool(MDL*);
 NTSTATUS  WINAPI MmCopyVirtualMemory(PEPROCESS,void*,PEPROCESS,void*,SIZE_T,KPROCESSOR_MODE,SIZE_T*);




More information about the wine-cvs mailing list