fix gui app running failure

now wmain.exe will show a empty window now.