aboutsummaryrefslogtreecommitdiff
path: root/CPP/Common/MyWindows.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--CPP/Common/MyWindows.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/CPP/Common/MyWindows.cpp b/CPP/Common/MyWindows.cpp
index 88f312f..ae284eb 100644
--- a/CPP/Common/MyWindows.cpp
+++ b/CPP/Common/MyWindows.cpp
@@ -78,7 +78,7 @@ BSTR SysAllocStringLen(const OLECHAR *s, UINT len)
78BSTR SysAllocString(const OLECHAR *s) 78BSTR SysAllocString(const OLECHAR *s)
79{ 79{
80 if (!s) 80 if (!s)
81 return 0; 81 return NULL;
82 const OLECHAR *s2 = s; 82 const OLECHAR *s2 = s;
83 while (*s2 != 0) 83 while (*s2 != 0)
84 s2++; 84 s2++;
@@ -181,7 +181,7 @@ BOOL WINAPI FileTimeToLocalFileTime(const FILETIME *fileTime, FILETIME *localFil
181{ 181{
182 UInt64 v = GET_TIME_64(fileTime); 182 UInt64 v = GET_TIME_64(fileTime);
183 v = (UInt64)((Int64)v - (Int64)TIME_GetBias() * TICKS_PER_SEC); 183 v = (UInt64)((Int64)v - (Int64)TIME_GetBias() * TICKS_PER_SEC);
184 SET_FILETIME(localFileTime, v); 184 SET_FILETIME(localFileTime, v)
185 return TRUE; 185 return TRUE;
186} 186}
187 187
@@ -189,7 +189,7 @@ BOOL WINAPI LocalFileTimeToFileTime(const FILETIME *localFileTime, FILETIME *fil
189{ 189{
190 UInt64 v = GET_TIME_64(localFileTime); 190 UInt64 v = GET_TIME_64(localFileTime);
191 v = (UInt64)((Int64)v + (Int64)TIME_GetBias() * TICKS_PER_SEC); 191 v = (UInt64)((Int64)v + (Int64)TIME_GetBias() * TICKS_PER_SEC);
192 SET_FILETIME(fileTime, v); 192 SET_FILETIME(fileTime, v)
193 return TRUE; 193 return TRUE;
194} 194}
195 195
@@ -203,7 +203,7 @@ VOID WINAPI GetSystemTimeAsFileTime(FILETIME *ft)
203 t = tv.tv_sec * (UInt64)TICKS_PER_SEC + TICKS_1601_TO_1970; 203 t = tv.tv_sec * (UInt64)TICKS_PER_SEC + TICKS_1601_TO_1970;
204 t += tv.tv_usec * 10; 204 t += tv.tv_usec * 10;
205 } 205 }
206 SET_FILETIME(ft, t); 206 SET_FILETIME(ft, t)
207} 207}
208*/ 208*/
209 209