mirror of
https://github.com/winfsp/winfsp.git
synced 2026-11-06 00:56:03 -06:00
dll: convert all initialization to the initonce pattern
This commit is contained in:
1 parent
b695ef8ad8
commit
68d79b0c3b
13 files changed
+53
-124
No files matched your search
@@ -67,14 +67,12 @@ void *memset(void *dst, int val, size_t siz)
|
||||
|
||||
static inline void *MemAlloc(size_t Size)
|
||||
{
|
||||
extern HANDLE ProcessHeap;
|
||||
return HeapAlloc(ProcessHeap, 0, Size);
|
||||
return HeapAlloc(GetProcessHeap(), 0, Size);
|
||||
}
|
||||
static inline void MemFree(void *Pointer)
|
||||
{
|
||||
extern HANDLE ProcessHeap;
|
||||
if (0 != Pointer)
|
||||
HeapFree(ProcessHeap, 0, Pointer);
|
||||
HeapFree(GetProcessHeap(), 0, Pointer);
|
||||
}
|
||||
|
||||
static FORCEINLINE
|
||||
|
||||
Reference in new issue
Block a user