peview: Add unsupported error message
* PE viewer
*
* Copyright (C) 2010 wj32
- * Copyright (C) 2017-2019 dmex
+ * Copyright (C) 2017-2020 dmex
*
* This file is part of Process Hacker.
*
@@ -249,8 +249,13 @@ INT WINAPI wWinMain(
}
if (!NT_SUCCESS(status))
+ {
+ if (status == STATUS_IMAGE_SUBSYSTEM_NOT_PRESENT)
+ PhShowError2(NULL, L"Unable to load the file.", L"PE Viewer does not support this image type.");
+ else
PhShowStatus(NULL, L"Unable to load the file.", status, 0);
}
+ }
PeSaveSettings();
