1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

working gtkpref plugin

This commit is contained in:
Berke Viktor 2011-08-17 15:22:40 +02:00
parent ce902a3926
commit 5472a813fa

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