Changeset 6933 for trunk/src/winmm/time.cpp
- Timestamp:
- Oct 3, 2001, 3:47:59 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/winmm/time.cpp
r6728 r6933 1 /* $Id: time.cpp,v 1.1 3 2001-09-16 19:27:25 phallerExp $ */1 /* $Id: time.cpp,v 1.14 2001-10-03 13:47:59 sandervl Exp $ */ 2 2 3 3 /* … … 18 18 #include <odinwrap.h> 19 19 #include <misc.h> 20 #include <handlemanager.h> 20 21 21 22 #include "os2timer.h" … … 138 139 UINT, IDEvent) 139 140 { 140 dprintf(("WINMM:timeKillEvent\n")); 141 141 OS2Timer *os2timer = NULL; 142 143 if(HMHandleTranslateToOS2(IDEvent, (PULONG)&os2timer) != NO_ERROR) { 144 dprintf(("invalid timer id")); 145 return TIMERR_NOERROR; //TODO: should we return an error here?? 146 } 147 HMHandleFree(IDEvent); 142 148 // return OS2Timer::killEvent(UINT IDEvent) 143 149 144 delete ((OS2Timer *)IDEvent);150 delete os2timer; 145 151 return TIMERR_NOERROR; 146 152 } … … 167 173 { 168 174 OS2Timer *timer; 175 ULONG timerID = 0; 169 176 170 177 // @@@PH 1999/10/26 hack for RA95 … … 200 207 return(0); 201 208 209 if(HMHandleAllocate(&timerID, (ULONG)timer) != NO_ERROR) { 210 dprintf(("HMHandleAllocate failed!!")); 211 delete timer; 212 return 0; 213 } 214 215 timer->setTimerID(timerID); 202 216 if(timer->StartTimer(wDelay, wResolution, lptc, dwUser, fuEvent) == FALSE) 203 217 { … … 206 220 return(0); 207 221 } 208 return(MMRESULT)timer ;222 return(MMRESULT)timerID; 209 223 } 210 224
Note:
See TracChangeset
for help on using the changeset viewer.