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

[x86/Linux] Fix dangling CLR_ImpersonateLoggedOnUser reference #8435

Merged
merged 1 commit into from
Dec 5, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/vm/i386/excepx86.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2247,6 +2247,7 @@ int COMPlusThrowCallbackHelper(IJitManager *pJitManager,
int iFilt = 0;
BOOL impersonating = FALSE;

#ifndef FEATURE_PAL
EX_TRY
{
GCPROTECT_BEGIN (throwable);
Expand Down Expand Up @@ -2297,6 +2298,10 @@ int COMPlusThrowCallbackHelper(IJitManager *pJitManager,
EX_END_CATCH(SwallowAllExceptions)

return iFilt;
#else // FEATURE_PAL
PORTABILITY_ASSERT("COMPlusThrowCallbackHelper");
return EXCEPTION_CONTINUE_SEARCH;
#endif // FEATURE_PAL
}

//******************************************************************************
Expand Down
4 changes: 4 additions & 0 deletions src/vm/securityprincipal.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@



#ifndef FEATURE_PAL
class COMPrincipal
{
public:
#ifndef FEATURE_CORECLR
static
INT32 QCALLTYPE ImpersonateLoggedOnUser(HANDLE hToken);

Expand All @@ -24,6 +26,8 @@ class COMPrincipal

static
INT32 QCALLTYPE SetThreadToken(HANDLE hToken);
#endif // !FEATURE_CORECLR

static void CLR_ImpersonateLoggedOnUser(HANDLE hToken);
};
#endif // FEATURE_PAL