to fixup winmain.cpp bug in ioctrldemo