Mercurial > emacs
diff lib-src/emacsclient.c @ 85114:5039706521c9
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-875
author | Miles Bader <miles@gnu.org> |
---|---|
date | Tue, 09 Oct 2007 08:52:57 +0000 |
parents | e872fac85e8c 5025525d6c9d |
children | 5f8a9bf276b9 |
line wrap: on
line diff
--- a/lib-src/emacsclient.c Tue Oct 09 08:44:02 2007 +0000 +++ b/lib-src/emacsclient.c Tue Oct 09 08:52:57 2007 +0000 @@ -35,6 +35,7 @@ # include <malloc.h> # include <stdlib.h> # include <windows.h> +# include <commctrl.h> # define NO_SOCKETS_IN_FILE_SYSTEM @@ -300,9 +301,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; }