aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 37297e0bf..1293d0737 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1879,9 +1879,12 @@ sptr_t PASCAL ScintillaWin::SWndProc(
}
}
+extern HINSTANCE hinstPlatformRes;
+
// This function is externally visible so it can be called from container when building statically
void Scintilla_RegisterClasses(void *hInstance) {
- ScintillaWin::Register(reinterpret_cast<HINSTANCE>(hInstance));
+ hinstPlatformRes = reinterpret_cast<HINSTANCE>(hInstance);
+ ScintillaWin::Register(hinstPlatformRes);
}
#ifndef STATIC_BUILD