mirror of
https://github.com/reactos/reactos.git
synced 2024-10-15 05:37:44 +00:00
No need for dca here if the ScreenDeviceContext is set inaccessible. So free the dca.
svn path=/trunk/; revision=30304
This commit is contained in:
parent
f6df1d4850
commit
1a98aabcd1
|
@ -304,7 +304,8 @@ co_IntInitializeDesktopGraphics(VOID)
|
||||||
IntDestroyPrimarySurface();
|
IntDestroyPrimarySurface();
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
DC_SetOwnership(ScreenDeviceContext, NULL);
|
DC_FreeDcAttr(ScreenDeviceContext); // Free the dcattr!
|
||||||
|
DC_SetOwnership(ScreenDeviceContext, NULL); // This hDC is inaccessible!
|
||||||
|
|
||||||
/* Setup the cursor */
|
/* Setup the cursor */
|
||||||
co_IntLoadDefaultCursors();
|
co_IntLoadDefaultCursors();
|
||||||
|
@ -316,7 +317,7 @@ VOID FASTCALL
|
||||||
IntEndDesktopGraphics(VOID)
|
IntEndDesktopGraphics(VOID)
|
||||||
{
|
{
|
||||||
if (NULL != ScreenDeviceContext)
|
if (NULL != ScreenDeviceContext)
|
||||||
{
|
{ // No need to allocate a new dcattr.
|
||||||
DC_SetOwnership(ScreenDeviceContext, PsGetCurrentProcess());
|
DC_SetOwnership(ScreenDeviceContext, PsGetCurrentProcess());
|
||||||
NtGdiDeleteObjectApp(ScreenDeviceContext);
|
NtGdiDeleteObjectApp(ScreenDeviceContext);
|
||||||
ScreenDeviceContext = NULL;
|
ScreenDeviceContext = NULL;
|
||||||
|
|
Loading…
Reference in a new issue