From d35db57d457132dd9d83fa2bd51491b148530655 Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 17 Oct 2021 11:14:00 +0800 Subject: *GUI --- Editor/GUI/WinUtils.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Editor/GUI/WinUtils.cpp') diff --git a/Editor/GUI/WinUtils.cpp b/Editor/GUI/WinUtils.cpp index e7b2d5b..84d0e37 100644 --- a/Editor/GUI/WinUtils.cpp +++ b/Editor/GUI/WinUtils.cpp @@ -7,6 +7,10 @@ namespace winutils HINSTANCE GetInstanceHandle() { + if (gInstanceHandle == NULL) + { + gInstanceHandle = GetModuleHandle(NULL); + } return gInstanceHandle; } -- cgit v1.1-26-g67d0