[ros-svn] [navaraf] 13366: Attempt to solve the imfamous WM_NCPAINT handle leak. The message handler isn't required to delete the region handle while it's also valid to delete it (eg. by calling GetDCEx with it). Thus we have to send the WM_NCPAINT message only synchronously and verify the handle after the SendMessage call.

navaraf at svn.reactos.com navaraf at svn.reactos.com
Sun Jan 30 13:56:15 CET 2005


Attempt to solve the imfamous WM_NCPAINT handle leak. The message handler isn't required to delete the region handle while it's also valid to delete it (eg. by calling GetDCEx with it). Thus we have to send the WM_NCPAINT message only synchronously and verify the handle after the SendMessage call.


Updated files:
trunk/reactos/include/win32k/gdiobj.h
trunk/reactos/subsys/win32k/ntuser/painting.c
trunk/reactos/subsys/win32k/objects/gdiobj.c




More information about the Ros-svn mailing list