- Timestamp:
- Jul 30, 2001, 12:19:54 PM (24 years ago)
- Location:
- trunk/src/winmm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/time.cpp
r5364 r6408 1 /* $Id: time.cpp,v 1.1 1 2001-03-24 13:23:48sandervl Exp $ */1 /* $Id: time.cpp,v 1.12 2001-07-30 10:19:54 sandervl Exp $ */ 2 2 3 3 /* … … 205 205 } 206 206 207 ULONG OPEN32API WinGetCurrentTime(ULONG hab); 208 209 inline ULONG _WinGetCurrentTime(ULONG a) 210 { 211 ULONG yyrc; 212 USHORT sel = RestoreOS2FS(); 213 214 yyrc = WinGetCurrentTime(a); 215 SetFS(sel); 216 217 return yyrc; 218 } 219 220 #undef WinGetCurrentTime 221 #define WinGetCurrentTime _WinGetCurrentTime 207 222 208 223 /***************************************************************************** … … 219 234 220 235 ODINFUNCTION2(MMRESULT, timeGetSystemTime, 221 LPMMTIME, arg1, 222 UINT, arg2) 223 { 224 dprintf2(("timeGetSystemTime %x %d", arg1, arg2)); 225 return O32_timeGetSystemTime(arg1, arg2); 236 LPMMTIME, pTime, 237 UINT, cbTime) 238 { 239 dprintf2(("timeGetSystemTime %x %d", pTime, cbTime)); 240 241 if(pTime == NULL || cbTime < sizeof(MMTIME)) { 242 SetLastError(ERROR_INVALID_PARAMETER); 243 return 0; 244 } 245 pTime->wType = TIME_MS; 246 pTime->u.ms = WinGetCurrentTime(0); 247 248 SetLastError(ERROR_SUCCESS); 249 return 0; 226 250 } 227 251 … … 257 281 #else 258 282 //SvL: TODO: Inaccurate 259 time = O32_timeGetTime();283 time = WinGetCurrentTime(0); 260 284 dprintf2(("timeGetTime %x", time)); 261 285 #endif -
trunk/src/winmm/winmm.mak
r6401 r6408 1 # $Id: winmm.mak,v 1. 5 2001-07-29 19:00:53sandervl Exp $1 # $Id: winmm.mak,v 1.6 2001-07-30 10:19:54 sandervl Exp $ 2 2 3 3 # … … 56 56 # 57 57 LIBS = \ 58 $(ODIN32_LIB)/pmwinx.lib \59 58 mmpm2.lib \ 60 59 $(ODIN32_LIB)/kernel32.lib \
Note:
See TracChangeset
for help on using the changeset viewer.