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

This commit is contained in:
Eric Pouech 2010-10-29 15:38:51 +02:00 committed by Alexandre Julliard
parent fd3ad8cd2a
commit 4b94890741
1 changed files with 3 additions and 4 deletions

View File

@ -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;
}