fix: Crash when loading process memory provider from project

This commit is contained in:
WerWolv
2025-02-17 10:16:37 +01:00
parent 677cff244d
commit f93e1194d6

View File

@@ -33,6 +33,9 @@
namespace hex::plugin::builtin {
bool ProcessMemoryProvider::open() {
if (m_selectedProcess == nullptr)
return false;
#if defined(OS_WINDOWS)
m_processHandle = OpenProcess(PROCESS_ALL_ACCESS, FALSE, m_selectedProcess->id);
if (m_processHandle == nullptr)