Commit 2a12ccd8 authored by Piotr Caban's avatar Piotr Caban Committed by Alexandre Julliard

ucrtbase: Add parameters validation to _timespec32_get function.

parent e9b3660e
......@@ -1998,6 +1998,9 @@ int CDECL _timespec32_get(struct _timespec32 *ts, int base)
{
struct _timespec64 ts64;
if(!MSVCRT_CHECK_PMT(ts != NULL)) return 0;
if(base != TIME_UTC) return 0;
if(_timespec64_get(&ts64, base) != base)
return 0;
if(ts64.tv_sec != (MSVCRT___time32_t)ts64.tv_sec)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment