Vitaliy Margolen wine-patches@kievinfo.com writes:
else ERR("Error creating message window\n");
- UnregisterClassW(classW, DINPUT_instance); return 0;
You need to clear the class atom if you unregister the class, otherwise the next window creation will fail.