diff options
Diffstat (limited to 'src/w32fns.c')
-rw-r--r-- | src/w32fns.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/w32fns.c b/src/w32fns.c index de5cee1d7a7..90bbc61eec6 100644 --- a/src/w32fns.c +++ b/src/w32fns.c @@ -1828,7 +1828,6 @@ static LRESULT CALLBACK w32_wnd_proc (HWND, UINT, WPARAM, LPARAM); static BOOL w32_init_class (HINSTANCE hinst) { - if (w32_unicode_gui) { WNDCLASSW uwc; @@ -7020,6 +7019,9 @@ cache_system_info (void) DWORD data; } version; + /* Cache the module handle of Emacs itself. */ + hinst = GetModuleHandle (NULL); + /* Cache the version of the operating system. */ version.data = GetVersion (); w32_major_version = version.info.major; |