mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
[TASKMGR] GraphCtrl_Dispose: Delete hdcGraph first
The pen might be selected at GraphCtrl_Dispose. Do not delete a drawing object (pen or brush) while it is still selected into a DC. CORE-18014
This commit is contained in:
parent
dc14a9f6e0
commit
7989e3f26c
1 changed files with 3 additions and 3 deletions
|
@ -116,6 +116,9 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
|
|||
if (inst->PointBuffer)
|
||||
HeapFree(GetProcessHeap(), 0, inst->PointBuffer);
|
||||
|
||||
if (inst->hdcGraph)
|
||||
DeleteDC(inst->hdcGraph);
|
||||
|
||||
if (inst->hPenGrid)
|
||||
DeleteObject(inst->hPenGrid);
|
||||
|
||||
|
@ -130,9 +133,6 @@ GraphCtrl_Dispose(PTM_GRAPH_CONTROL inst)
|
|||
|
||||
if (inst->hbmGraph)
|
||||
DeleteObject(inst->hbmGraph);
|
||||
|
||||
if (inst->hdcGraph)
|
||||
DeleteDC(inst->hdcGraph);
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in a new issue