Michael Stefaniuc : msvcrt: Add missing dereference of the time pointer.
Alexandre Julliard
julliard at winehq.org
Wed Nov 24 11:28:39 CST 2010
Module: wine
Branch: master
Commit: 33c528188de8b229bccfcf945f2e1d9daf153842
URL: http://source.winehq.org/git/wine.git/?a=commit;h=33c528188de8b229bccfcf945f2e1d9daf153842
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Wed Nov 24 00:37:32 2010 +0100
msvcrt: Add missing dereference of the time pointer.
---
dlls/msvcrt/time.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/msvcrt/time.c b/dlls/msvcrt/time.c
index 7ccdc7d..4150156 100644
--- a/dlls/msvcrt/time.c
+++ b/dlls/msvcrt/time.c
@@ -913,7 +913,7 @@ int CDECL MSVCRT__ctime64_s(char *res, MSVCRT_size_t len, const MSVCRT___time64_
return MSVCRT_EINVAL;
}
res[0] = '\0';
- if( !MSVCRT_CHECK_PMT( time != NULL ) || !MSVCRT_CHECK_PMT( time > 0 ) )
+ if( !MSVCRT_CHECK_PMT( time != NULL ) || !MSVCRT_CHECK_PMT( *time > 0 ) )
{
*MSVCRT__errno() = MSVCRT_EINVAL;
return MSVCRT_EINVAL;
@@ -946,7 +946,7 @@ int CDECL MSVCRT__ctime32_s(char *res, MSVCRT_size_t len, const MSVCRT___time32_
return MSVCRT_EINVAL;
}
res[0] = '\0';
- if( !MSVCRT_CHECK_PMT( time != NULL ) || !MSVCRT_CHECK_PMT( time > 0 ) )
+ if( !MSVCRT_CHECK_PMT( time != NULL ) || !MSVCRT_CHECK_PMT( *time > 0 ) )
{
*MSVCRT__errno() = MSVCRT_EINVAL;
return MSVCRT_EINVAL;
More information about the wine-cvs
mailing list