[ros-kernel] Is this the problem with timers not killed?

Waldo Alvarez Cañizares wac at lab.matcom.uh.cu
Tue Feb 17 18:31:24 CET 2004


The problem for timers could be this:
 
...
if(WindowObject->OwnerThread != PsGetCurrentThread())
    {
      IntReleaseWindowObject(WindowObject);
      ExReleaseFastMutex(&Mutex); 
      SetLastWin32Error(ERROR_ACCESS_DENIED);
      return FALSE;
    }
...
 
For single threaded applications that will work but for multithreaded I think that it could not work.
I think we should find out if both Threads (owner and current) belong to the same process.
and deny access only if the don't. However it would be good to check if Windows does this.

this code  is in IntKillTimer somewhere in subsys\win32k\ .... (I forgot to log it)
 
Regards
Waldo Alvarez
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3900 bytes
Desc: not available
Url : http://reactos.com:8080/pipermail/ros-kernel/attachments/20040217/532d8571/attachment.bin


More information about the Ros-kernel mailing list