[PATCH 02/10] [Msvcrt]: moved _get_osplatform to the new macros for parameters validation

Eric Pouech eric.pouech at orange.fr
Fri Oct 29 08:38:51 CDT 2010




A+
---

 dlls/msvcrt/data.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)


diff --git a/dlls/msvcrt/data.c b/dlls/msvcrt/data.c
index 068b29f..53dd114 100644
--- a/dlls/msvcrt/data.c
+++ b/dlls/msvcrt/data.c
@@ -228,15 +228,14 @@ MSVCRT_wchar_t*** CDECL __p___winitenv(void) { return &MSVCRT___winitenv; }
 /*********************************************************************
  *		_get_osplatform (MSVCRT.@)
  */
-int CDECL MSVCRT__get_osplatform(int *ret)
+int CDECL MSVCRT__get_osplatform(int *pValue)
 {
-    if(!ret) {
-        MSVCRT__invalid_parameter(NULL, NULL, NULL, 0, 0);
+    if (!MSVCRT_CHECK_PMT(pValue != NULL)) {
         *MSVCRT__errno() = MSVCRT_EINVAL;
         return MSVCRT_EINVAL;
     }
 
-    *ret = MSVCRT__osplatform;
+    *pValue = MSVCRT__osplatform;
     return 0;
 }
 






More information about the wine-patches mailing list