working gtkpref plugin

This commit is contained in:
Berke Viktor 2011-08-17 15:22:40 +02:00
parent ce902a3926
commit 5472a813fa
1 changed files with 13 additions and 1 deletions

View File

@ -25,7 +25,6 @@
*/
#include <windows.h>
#include <wininet.h>
#include "xchat-plugin.h"
@ -34,7 +33,20 @@ static xchat_plugin *ph; /* plugin handle */
static void
launch_tool ()
{
STARTUPINFO si;
PROCESS_INFORMATION pi;
ZeroMemory (&si, sizeof (si));
si.cb = sizeof (si);
ZeroMemory (&pi, sizeof (pi));
if (!CreateProcess ( NULL, "gtk2-prefs.exe", NULL, NULL, FALSE, 0, NULL, NULL, &si, &pi))
{
xchat_print (ph, "Error launching the GTK+ Preference Tool! Maybe the executable is missing?");
}
CloseHandle (pi.hProcess);
CloseHandle (pi.hThread);
}
int