# HG changeset patch # User Jason Rumney # Date 1190930915 0 # Node ID 5025525d6c9d66402ec32c77c3a1e5598274266c # Parent e7e6abb88c1c82fcff3fc796d47aa8b91057ac0e (w32_window_app): Init common controls when windowed. diff -r e7e6abb88c1c -r 5025525d6c9d lib-src/emacsclient.c --- a/lib-src/emacsclient.c Thu Sep 27 22:08:19 2007 +0000 +++ b/lib-src/emacsclient.c Thu Sep 27 22:08:35 2007 +0000 @@ -35,6 +35,7 @@ # include # include # include +# include # define NO_SOCKETS_IN_FILE_SYSTEM @@ -159,9 +160,13 @@ char szTitle[MAX_PATH]; if (window_app < 0) - /* Checking for STDOUT does not work; it's a valid handle also in - nonconsole apps. Testing for the console title seems to work. */ - window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); + { + /* Checking for STDOUT does not work; it's a valid handle also in + nonconsole apps. Testing for the console title seems to work. */ + window_app = (GetConsoleTitleA (szTitle, MAX_PATH) == 0); + if (window_app) + InitCommonControls(); + } return window_app; }