diff options
author | Andreu Correa Casablanca <castarco@gmail.com> | 2011-09-11 22:01:10 +0200 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-09-13 11:01:59 +0100 |
commit | 935c7c0714ce2e5799292d193a2be0e175d1d80c (patch) | |
tree | 9ebac877fe3b31b6206dc009adae3e218f73afb8 /sal | |
parent | 9f78448b94288883d0b33d8ef372dc67a1903b31 (diff) |
Reduced the scope of a variable in core/sal/osl/w32/file_dirvol.cxx
Diffstat (limited to 'sal')
-rw-r--r-- | sal/osl/w32/file_dirvol.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sal/osl/w32/file_dirvol.cxx b/sal/osl/w32/file_dirvol.cxx index b6dc0028879e..e5852eb45c6b 100644 --- a/sal/osl/w32/file_dirvol.cxx +++ b/sal/osl/w32/file_dirvol.cxx @@ -60,7 +60,6 @@ extern "C" BOOL TimeValueToFileTime(const TimeValue *cpTimeVal, FILETIME *pFTime SYSTEMTIME BaseSysTime; FILETIME BaseFileTime; FILETIME FTime; - __int64 localTime; BOOL fSuccess = FALSE; BaseSysTime.wYear = 1970; @@ -77,7 +76,9 @@ extern "C" BOOL TimeValueToFileTime(const TimeValue *cpTimeVal, FILETIME *pFTime if ( SystemTimeToFileTime(&BaseSysTime, &BaseFileTime) ) { + __int64 localTime; __int64 timeValue; + localTime=cpTimeVal->Seconds*(__int64)10000000+cpTimeVal->Nanosec/100; *(__int64 *)&FTime=localTime; fSuccess = 0 <= (timeValue= *((__int64 *)&BaseFileTime) + *((__int64 *) &FTime)); |