mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 00:45:24 +00:00
[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:
parent
0ae6a509b0
commit
561ad3c1d6
1 changed files with 33 additions and 35 deletions
|
@ -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:
|
* WINE COPYRIGHT:
|
||||||
* Copyright 1999, 2000 Juergen Schmied <juergen.schmied@debitel.net>
|
* Copyright 1999, 2000 Juergen Schmied <juergen.schmied@debitel.net>
|
||||||
* Copyright 2003 CodeWeavers Inc. (Ulrich Czekalla)
|
* Copyright 2003 CodeWeavers Inc. (Ulrich Czekalla)
|
||||||
* Copyright 2006 Robert Reif
|
* Copyright 2006 Robert Reif
|
||||||
* Copyright 2006 Hervé Poussineau
|
* Copyright 2006 Hervé Poussineau
|
||||||
*
|
|
||||||
* PROJECT: ReactOS system libraries
|
|
||||||
* FILE: dll/win32/advapi32/wine/security.c
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <advapi32.h>
|
#include <advapi32.h>
|
||||||
|
@ -306,7 +304,7 @@ OpenProcessToken(HANDLE ProcessHandle,
|
||||||
TokenHandle);
|
TokenHandle);
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ERR("NtOpenProcessToken failed! Status %08x.\n", Status);
|
WARN("NtOpenProcessToken failed! Status %08x\n", Status);
|
||||||
SetLastError(RtlNtStatusToDosError(Status));
|
SetLastError(RtlNtStatusToDosError(Status));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue