win32: crash on app start fixed