[SDK] Don't just infinitely spam the DbgPrint in the bootloader (#6763)
[reactos.git] / dll / win32 / fusion / fusionpriv.h
index db89154..ea5953a 100644 (file)
 #ifndef __WINE_FUSION_PRIVATE__
 #define __WINE_FUSION_PRIVATE__
 
-//#include <stdarg.h>
-
-//#include "windef.h"
-//#include "winbase.h"
-//#include "winuser.h"
-#include <winver.h>
+#include <stdarg.h>
+
+#include "ntstatus.h"
+#define WIN32_NO_STATUS
+#include "windef.h"
+#include "windef.h"
+#include "winbase.h"
+#include "winuser.h"
+#include "winver.h"
+#include "wine/heap.h"
+
+#ifdef __REACTOS__
+#include <objbase.h>
+#include <fusion.h>
+#endif
 
 #include <pshpack1.h>
 
@@ -448,8 +457,7 @@ static inline LPWSTR strdupW(LPCWSTR src)
     if (!src)
         return NULL;
 
-    dest = HeapAlloc(GetProcessHeap(), 0, (lstrlenW(src) + 1) * sizeof(WCHAR));
-    if (dest)
+    if ((dest = heap_alloc((lstrlenW(src) + 1) * sizeof(WCHAR))))
         lstrcpyW(dest, src);
 
     return dest;