1
0
mirror of https://github.com/UzixLS/KernelEx.git synced 2025-07-19 07:21:20 +03:00

import KernelEx-4.0-RC2

This commit is contained in:
UzixLS
2018-11-03 16:19:29 +03:00
parent d4e0420295
commit 339353cce8
299 changed files with 682 additions and 165 deletions

4
core/internals.cpp Normal file → Executable file
View File

@ -28,6 +28,7 @@
#include "pemanip.h"
static bool is_winme;
HINSTANCE hInstance;
IMTE*** ppmteModTable = NULL;
HMODULE h_kernel32;
@ -119,7 +120,7 @@ void ShowError(UINT id, ...)
va_list vargs;
va_start(vargs, id);
if (!LoadString(GetModuleHandle(NULL), id, format, sizeof(format)))
if (!LoadString(hInstance, id, format, sizeof(format)))
sprintf(out, "ERROR: Missing string resource %d", id);
else
_vsnprintf(out, sizeof(out), format, vargs);
@ -476,6 +477,7 @@ static bool find_kernelex_install_dir()
int internals_init()
{
DBGPRINTF(("KernelEx loaded @ %08x\n", hInstance));
DBGPRINTF(("internals_init()\n"));
h_kernel32 = GetModuleHandle("kernel32");
ppmteModTable = find_mod_table();