Re: shlwapi: stub implementation for SHSetTimerQueueTimer (try 2)

2007-05-21 Thread James Hawkins
On 5/21/07, Nigel Liang (梁乃強) <[EMAIL PROTECTED]> wrote: Hi, I am not quite sure I understand what you mean? CreateTimerQueueTimer should return a Boolean indicating whether the operation has succeeded. Checking the return value in a ternary operation should return the correct handle if CreateTi

Re: shlwapi: stub implementation for SHSetTimerQueueTimer (try 2)

2007-05-21 Thread Nigel Liang (梁乃強)
Hi, I am not quite sure I understand what you mean? CreateTimerQueueTimer should return a Boolean indicating whether the operation has succeeded. Checking the return value in a ternary operation should return the correct handle if CreateTimerQueueTimer succeeds and NULL otherwise. Unless I have m

Re: shlwapi: stub implementation for SHSetTimerQueueTimer (try 2)

2007-05-21 Thread Dmitry Timoshkov
"Nigel Liang" <[EMAIL PROTECTED]> wrote: +HANDLE WINAPI SHSetTimerQueueTimer(HANDLE hQueue, +WAITORTIMERCALLBACK pfnCallback, LPVOID pContext, DWORD dwDueTime, +DWORD dwPeriod, LPCSTR lpszLibrary, DWORD dwFlags) +{ ... +return CreateTimerQueueTimer(&hNewTimer, hQueue, pfnCa

Re: shlwapi: stub implementation for SHSetTimerQueueTimer

2007-05-18 Thread Dmitry Timoshkov
"Nigel Liang" <[EMAIL PROTECTED]> wrote: +CreateTimerQueueTimer(phNewTimer, hQueue, pfnCallback, pContext, +dwDueTime, dwPeriod, dwFlags); + +return *phNewTimer; You have to check the return value of CreateTimerQueueTimer before returning a possible garbage. -- Dmitry.