Changeset 197 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Jan 20, 2007 1:22:45 AM (18 years ago)
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/posix/timer-posix.cpp
r1 r197 319 319 LogFlow(("RTTimerDestroy: pTimer=%p\n", pTimer)); 320 320 321 /* NULL is ok. */ 322 if (!pTimer) 323 return VINF_SUCCESS; 324 321 325 /* 322 326 * Validate input. 323 327 */ 324 328 int rc = VINF_SUCCESS; 325 if ( pTimer)329 if (VALID_PTR(pTimer)) 326 330 { 327 331 /* … … 354 358 else 355 359 { 356 AssertMsgFailed((" An attempt was made to destroy a NULL timer!\n"));357 rc = VERR_INVALID_ POINTER;360 AssertMsgFailed(("Bad pTimer pointer %p!\n", pTimer)); 361 rc = VERR_INVALID_HANDLE; 358 362 } 359 363 return rc; -
trunk/src/VBox/Runtime/r3/win32/timer-win32.cpp
r1 r197 412 412 RTR3DECL(int) RTTimerDestroy(PRTTIMER pTimer) 413 413 { 414 /* NULL is ok. */ 415 if (!pTimer) 416 return VINF_SUCCESS; 417 414 418 /* 415 419 * Validate handle first. 416 420 */ 417 421 int rc; 418 if (pTimer && pTimer->u32Magic == RTTIMER_MAGIC) 422 if ( VALID_PTR(pTimer) 423 && pTimer->u32Magic == RTTIMER_MAGIC) 419 424 { 420 425 #ifdef USE_WINMM
Note:
See TracChangeset
for help on using the changeset viewer.