Eric Pouech : msvcrt: Moved _get_osplatform to the new macros for parameters validation.

Alexandre Julliard julliard at winehq.org
Mon Nov 1 11:54:34 CDT 2010


Module: wine
Branch: master
Commit: 4b9489074115d790cc91bd867c9d85e2f50a2627
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4b9489074115d790cc91bd867c9d85e2f50a2627

Author: Eric Pouech <eric.pouech at orange.fr>
Date:   Fri Oct 29 15:38:51 2010 +0200

msvcrt: Moved _get_osplatform to the new macros for parameters validation.

---

 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-cvs mailing list