From ac07e9afb9ef67ae227966425f85c26613b7ea94 Mon Sep 17 00:00:00 2001 From: Jonas Kümmerlin Date: Mon, 29 Apr 2019 22:10:17 +0200 Subject: remove app, use global variables instead also some unrelated combobox fixes --- alf/alfcompat.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alf/alfcompat.h') diff --git a/alf/alfcompat.h b/alf/alfcompat.h index e0faf62..0d5a7d4 100644 --- a/alf/alfcompat.h +++ b/alf/alfcompat.h @@ -8,6 +8,9 @@ #define WM_DPICHANGED 0x02E0 #endif +extern "C" IMAGE_DOS_HEADER __ImageBase; +#define ALF_HINSTANCE ((HINSTANCE)&__ImageBase) + typedef LRESULT (CALLBACK *ALF_COMPAT_SUBCLASSPROC)(HWND,UINT,WPARAM,LPARAM,UINT_PTR,DWORD_PTR); typedef struct { -- cgit v1.2.3