mirror of
https://github.com/VincentWei/MiniGUI.git
synced 2026-02-07 11:01:57 +08:00
always call ReleaseDC even if it is a private CDC in release_valid_dc
This commit is contained in:
@@ -697,8 +697,9 @@ static inline void release_valid_dc (PMAINWIN pWin, HDC hdc)
|
||||
ReleaseSecondarySubDC (hdc);
|
||||
}
|
||||
else {
|
||||
if (pWin->privCDC != hdc)
|
||||
ReleaseDC (hdc);
|
||||
// Since 5.0.0, we always call ReleaseDC even if it is private CDC.
|
||||
// if (pWin->privCDC != hdc)
|
||||
ReleaseDC (hdc);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user