Daniel Lehman : oleaut32: Return FALSE from SystemTimeToVariantTime if day > 31 or year is negative.
Alexandre Julliard
julliard at winehq.org
Fri Jan 10 14:44:56 CST 2014
Module: wine
Branch: stable
Commit: d3e86cc8c748ebccb14c6a3739236f875083aa1a
URL: http://source.winehq.org/git/wine.git/?a=commit;h=d3e86cc8c748ebccb14c6a3739236f875083aa1a
Author: Daniel Lehman <dlehman at esri.com>
Date: Mon Jan 30 11:12:54 2012 -0800
oleaut32: Return FALSE from SystemTimeToVariantTime if day > 31 or year is negative.
(cherry picked from commit 8306518424a24a19c9c88d87f98fd3ac0024415a)
---
dlls/oleaut32/variant.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/dlls/oleaut32/variant.c b/dlls/oleaut32/variant.c
index c343578..d4c6f6c 100644
--- a/dlls/oleaut32/variant.c
+++ b/dlls/oleaut32/variant.c
@@ -1312,6 +1312,10 @@ INT WINAPI SystemTimeToVariantTime(LPSYSTEMTIME lpSt, double *pDateOut)
if (lpSt->wMonth > 12)
return FALSE;
+ if (lpSt->wDay > 31)
+ return FALSE;
+ if ((short)lpSt->wYear < 0)
+ return FALSE;
ud.st = *lpSt;
return VarDateFromUdate(&ud, 0, pDateOut) == S_OK;
More information about the wine-cvs
mailing list