[ADVAPI32] Mute frequent taskmgr logspam CORE-18521 (#5888)

George explained that this is supposed to fail like that,
aka "works as designed". So let's at least mute this now,
as it is spammed with every taskmgr refresh cycle
and allows me to reduce logfile-sizes from ~50MB back to ~2MB
when building ros on ros.

err:(dll/win32/advapi32/wine/security.c:309) NtOpenProcessToken failed! Status c0000022.

Fixes CORE-18521

Also strip some EOL-whitespace in the file, and slightly improve the header.
This commit is contained in:
Joachim Henze 2023-11-05 18:32:13 +01:00 committed by GitHub
parent 0ae6a509b0
commit 561ad3c1d6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,13 +1,11 @@
/*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
* LICENSE: See COPYING in the top level directory
* WINE COPYRIGHT:
* Copyright 1999, 2000 Juergen Schmied <juergen.schmied@debitel.net>
* Copyright 2003 CodeWeavers Inc. (Ulrich Czekalla)
* Copyright 2006 Robert Reif
* Copyright 2006 Hervé Poussineau
*
* PROJECT: ReactOS system libraries
* FILE: dll/win32/advapi32/wine/security.c
*/
#include <advapi32.h>
@ -306,7 +304,7 @@ OpenProcessToken(HANDLE ProcessHandle,
TokenHandle);
if (!NT_SUCCESS(Status))
{
ERR("NtOpenProcessToken failed! Status %08x.\n", Status);
WARN("NtOpenProcessToken failed! Status %08x\n", Status);
SetLastError(RtlNtStatusToDosError(Status));
return FALSE;
}