-
-
Notifications
You must be signed in to change notification settings - Fork 2k
[SYSDM][DESK] Fix GetDC/ReleaseDC error management #2707
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @katahiromz for your comments. I've also pushed some refactoring to further improve error management. |
|
I've added LiveCD Userinit, which is based on SYSDM. Ready for review. |
GetDC() is called without properly calling ReleaseDC() as required in order to releases a device context. Similar to #2707
|
All comments taken into account. |
|
Thank you @SergeGautherie for your review. Unless I did something wrong all your comments should be included in last commit. |
|
@SergeGautherie : Comments included and justification of design proposed. Regarding hSpectrum, Git did not proposed that I could reply but if GetDC fails to provide hSpectrumDC it's better to exit the OnBPPChanged without further effect, in order to be a consistent mode (prior to change) rather than half way the code processing, with execution of other instructions over a NULL context. |
|
@HBelusca : Do you still have comments based on the last changes i've made ? Or are you OK to approve ? |
|
@binarymaster : Please set the "bug fix" label too for the ReleaseDC part. |
|
Thanks ! |
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
Fix missing ReleaseDC related to the spectrum (color depth) We leaked one device context for each bpp change within the desk.cpl-session, which gave the following logging when closing desk.cpl: (win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()! 1 time for each leak. Partial backport of (#2707) Fix picked from 0.4.15-dev-2867-g d635ce0
GetDC() is called without properly calling ReleaseDC() as required in order to releases a device context. Similar to reactos#2707
Purpose
[SYSDM]
(win32ss/user/ntuser/windc.c:749) err: [00060138] GetDC() without ReleaseDC()!
because GetDC() is called (multiple times) without properly calling ReleaseDC() as required in order to releases a device context.
[DESK]
Proposed changes