forked from Mirrors/openclonk
Windows: Fix editor icons and other potential breakage related to HINSTACE
I even wrote the function for this but forgot to use it. Probably due to hope that someone would replace that stuff with GetModuleHandle(0).
parent
5a774c543d
commit
ecb46bb188
|
@ -110,6 +110,7 @@ int WINAPI WinMain (HINSTANCE hInst,
|
||||||
LocalFree(wargv);
|
LocalFree(wargv);
|
||||||
|
|
||||||
// Init application
|
// Init application
|
||||||
|
Application.SetInstance(hInst);
|
||||||
if (!Application.Init(argv.size(), &argv[0]))
|
if (!Application.Init(argv.size(), &argv[0]))
|
||||||
{
|
{
|
||||||
Application.Clear();
|
Application.Clear();
|
||||||
|
|
Loading…
Reference in New Issue