mirror of
https://github.com/reactos/reactos.git
synced 2025-06-01 23:48:12 +00:00
[OPENGL32] Remove Err Log Spam from wglMakeCurrent in nominal cases (#3096)
CORE-17224
This commit is contained in:
parent
f87fb4e3df
commit
ba006b3d49
1 changed files with 6 additions and 2 deletions
|
@ -742,9 +742,13 @@ BOOL WINAPI wglMakeCurrent(HDC hdc, HGLRC hglrc)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
/* Winetest conformance */
|
/* Winetest conformance */
|
||||||
if (GetObjectType( hdc ) != OBJ_DC && GetObjectType( hdc ) != OBJ_MEMDC)
|
DWORD objType = GetObjectType(hdc);
|
||||||
|
if (objType != OBJ_DC && objType != OBJ_MEMDC)
|
||||||
{
|
{
|
||||||
ERR( "Error: hdc is not a DC handle!\n");
|
if (hdc)
|
||||||
|
{
|
||||||
|
ERR("hdc (%p) is not a DC handle (ObjectType: %d)!\n", hdc, objType);
|
||||||
|
}
|
||||||
SetLastError( ERROR_INVALID_HANDLE );
|
SetLastError( ERROR_INVALID_HANDLE );
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue