Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit b6abc16

Browse files
author
Mike McLaughlin
committed
Fixed issue #13282: dbgshim fails with E_ACCESSDENIED on Windows.
Changed the open process token from TOKEN_READ to TOKEN_QUERY.
1 parent 089fe7b commit b6abc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utilcode/securityutil.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ HRESULT SecurityUtil::GetMandatoryLabelFromProcess(HANDLE hProcess, LPBYTE * ppb
336336
HandleHolder hToken;
337337
DWORD err = 0;
338338

339-
if(!OpenProcessToken(hProcess, TOKEN_READ, &hToken))
339+
if(!OpenProcessToken(hProcess, TOKEN_QUERY, &hToken))
340340
{
341341
return HRESULT_FROM_GetLastError();
342342
}

0 commit comments

Comments
 (0)