diff src/buddy.c @ 4453:78a2d2e7f4b5

[gaim-migrate @ 4728] Patch from phrogie - enable pounce command exec committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Tue, 28 Jan 2003 21:47:44 +0000
parents 04d2e57b22c5
children e73c4e8e2d03
line wrap: on
line diff
--- a/src/buddy.c	Tue Jan 28 21:42:44 2003 +0000
+++ b/src/buddy.c	Tue Jan 28 21:47:44 2003 +0000
@@ -1444,6 +1444,17 @@
 					execvp(args[0], args);
 					_exit(0);
 				}
+#else
+				STARTUPINFO si;
+				PROCESS_INFORMATION pi;
+
+				ZeroMemory( &si, sizeof(si) );
+				si.cb = sizeof(si);
+				ZeroMemory( &pi, sizeof(pi) );
+
+				CreateProcess( NULL, b->command, NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi );
+				CloseHandle( pi.hProcess );
+				CloseHandle( pi.hThread );
 #endif /*_WIN32*/
 			}
 			if (b->options & OPT_POUNCE_SOUND) {