Add missing function pointer checks.

This commit is contained in:
Bartosz Taudul 2019-08-19 12:47:27 +02:00
parent e60b2884f4
commit d209bb4d01

View File

@ -225,7 +225,7 @@ void SysTraceSendExternalName( uint64_t thread )
}
#endif
const auto pid = GetProcessIdOfThread( hnd );
if( !threadSent && NtQueryInformationThread && _EnumProcessModules )
if( !threadSent && NtQueryInformationThread && _EnumProcessModules && _GetModuleInformation && _GetModuleBaseNameA )
{
void* ptr;
ULONG retlen;