Author: gschneider
Date: Tue Dec 1 19:53:01 2009
New Revision: 44345
URL:
http://svn.reactos.org/svn/reactos?rev=44345&view=rev
Log:
[kernel]
- Fail in DosDateTimeToFileTime if prior time conversion was unsuccessful
- Should fix the NetStats installation, bug #4917, part 2
Modified:
trunk/reactos/dll/win32/kernel32/misc/time.c
Modified: trunk/reactos/dll/win32/kernel32/misc/time.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/misc/ti…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/misc/time.c [iso-8859-1] Tue Dec 1 19:53:01 2009
@@ -318,7 +318,10 @@
SystemTime.wMonth = pddate->Month;
SystemTime.wYear = 1980 + pddate->Year;
- SystemTimeToFileTime(&SystemTime,lpFileTime);
+ if (SystemTimeToFileTime(&SystemTime, lpFileTime) == FALSE)
+ {
+ return FALSE;
+ }
return TRUE;
}