Note to self: review diffs and remove temporary changes BEFORE commiting (not after).
authorDavid Quintana <gigaherz@gmail.com>
Thu, 30 Apr 2015 22:09:11 +0000 (22:09 +0000)
committerDavid Quintana <gigaherz@gmail.com>
Thu, 30 Apr 2015 22:09:11 +0000 (22:09 +0000)
svn path=/trunk/; revision=67484

reactos/dll/win32/fmifs/precomp.h
reactos/dll/win32/framedyn/chstring.cpp
reactos/drivers/network/ndis/include/ndissys.h
reactos/include/ddk/stdunk.h
reactos/include/psdk/kcom.h
reactos/lib/sdk/cpprt/i386/cpprt.s

index a72cf5e..0d2218f 100644 (file)
 
 /* INCLUDES ******************************************************************/
 
 
 /* INCLUDES ******************************************************************/
 
-#define WIN32_NO_STATUS
-
 #include <stdio.h>
 
 #include <stdio.h>
 
+#define WIN32_NO_STATUS
 
 /* PSDK/NDK Headers */
 #include <windef.h>
 
 /* PSDK/NDK Headers */
 #include <windef.h>
index 3b43c45..d9bf714 100644 (file)
@@ -54,19 +54,6 @@ void operator delete(void* ptr)
     }
 }
 
     }
 }
 
-#if _MSC_VER >= 51900
-void __cdecl operator delete(void* ptr, unsigned int)
-{
-    // In Windows 2k3, they check for ptr being null.
-    // ISO, POSIX and even MSDN explains that it is allowed
-    // to call free with NULL pointer...
-    if (ptr)
-    {
-        free(ptr);
-    }
-}
-#endif
-
 // Implement our own new operator so that we can throw our own exception in case
 // of allocation failure.
 // It could have been done using set_new_handler(), but well. MS guys didn't do it
 // Implement our own new operator so that we can throw our own exception in case
 // of allocation failure.
 // It could have been done using set_new_handler(), but well. MS guys didn't do it
index 6c2fa35..b80a6a0 100644 (file)
 #ifndef __NDISSYS_H
 #define __NDISSYS_H
 
 #ifndef __NDISSYS_H
 #define __NDISSYS_H
 
-/* portability fixes */
-#ifdef _M_AMD64
-#define KfReleaseSpinLock KeReleaseSpinLock
-#define KefAcquireSpinLockAtDpcLevel KeAcquireSpinLockAtDpcLevel
-#define KefReleaseSpinLockFromDpcLevel KeReleaseSpinLockFromDpcLevel
-#endif
-
 #include <ndis.h>
 
 #include "debug.h"
 #include <ndis.h>
 
 #include "debug.h"
@@ -61,4 +54,11 @@ NTAPI
 ExGetCurrentProcessorCpuUsage(
     PULONG CpuUsage);
 
 ExGetCurrentProcessorCpuUsage(
     PULONG CpuUsage);
 
+/* portability fixes */
+#ifdef _M_AMD64
+#define KfReleaseSpinLock KeReleaseSpinLock
+#define KefAcquireSpinLockAtDpcLevel KeAcquireSpinLockAtDpcLevel
+#define KefReleaseSpinLockFromDpcLevel KeReleaseSpinLockFromDpcLevel
+#endif
+
 #endif /* __NDISSYS_H */
 #endif /* __NDISSYS_H */
index f9915cf..6b15a4a 100644 (file)
@@ -206,7 +206,7 @@ operator delete(
 
 inline void __cdecl
 operator delete(
 
 inline void __cdecl
 operator delete(
-    PVOID ptr, UINT unk)
+    PVOID ptr, UINT)
 {
     ExFreePool(ptr);
 }
 {
     ExFreePool(ptr);
 }
index 956e25f..f6f596f 100644 (file)
@@ -235,7 +235,7 @@ inline void __cdecl operator delete(
 }
 
 inline void __cdecl operator delete(
 }
 
 inline void __cdecl operator delete(
-  PVOID pVoid, UINT unk)
+  PVOID pVoid, UINT)
 {
   if (pVoid) ExFreePool(pVoid);
 }
 {
   if (pVoid) ExFreePool(pVoid);
 }
index 8935893..f5fe642 100644 (file)
@@ -27,7 +27,7 @@ _CallCxxFrameHandler:
 ; void __stdcall `eh vector constructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *),void (__thiscall*)(void *))
 DEFINE_ALIAS ??_L@YGXPAXIHP6EX0@Z1@Z, ?MSVCRTEX_eh_vector_constructor_iterator@@YGXPAXIHP6EX0@Z1@Z
 
 ; void __stdcall `eh vector constructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *),void (__thiscall*)(void *))
 DEFINE_ALIAS ??_L@YGXPAXIHP6EX0@Z1@Z, ?MSVCRTEX_eh_vector_constructor_iterator@@YGXPAXIHP6EX0@Z1@Z
 
-; void __stdcall `eh vector constructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *),void (__thiscall*)(void *))
+; void __stdcall `eh vector constructor iterator'(void *,unsigned int,unsigned int,void (__thiscall*)(void *),void (__thiscall*)(void *))
 DEFINE_ALIAS ??_L@YGXPAXIIP6EX0@Z1@Z, ?MSVCRTEX_eh_vector_constructor_iterator@@YGXPAXIHP6EX0@Z1@Z
 
 ; void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))
 DEFINE_ALIAS ??_L@YGXPAXIIP6EX0@Z1@Z, ?MSVCRTEX_eh_vector_constructor_iterator@@YGXPAXIHP6EX0@Z1@Z
 
 ; void __stdcall `eh vector destructor iterator'(void *,unsigned int,int,void (__thiscall*)(void *))
@@ -38,6 +38,5 @@ DEFINE_ALIAS ??_M@YGXPAXIIP6EX0@Z@Z, ?MSVCRTEX_eh_vector_destructor_iterator@@YG
 
 ; void __cdecl operator delete(void *,unsigned int)
 DEFINE_ALIAS ??3@YAXPAXI@Z, ??3@YAXPAX@Z
 
 ; void __cdecl operator delete(void *,unsigned int)
 DEFINE_ALIAS ??3@YAXPAXI@Z, ??3@YAXPAX@Z
-DEFINE_ALIAS ??3@YAXPAXII@Z, ??3@YAXPAX@Z
 
 END
 
 END