Module: wine Branch: master Commit: 4b9489074115d790cc91bd867c9d85e2f50a2627 URL: http://source.winehq.org/git/wine.git/?a=commit;h=4b9489074115d790cc91bd867c...
Author: Eric Pouech eric.pouech@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; }