main_win: replaced g_error usages with MPD_ERROR

This commit is contained in:
Denis Krjuchkov 2010-09-28 22:38:57 +06:00
parent 2b78358af5
commit e10b872fc3
1 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#ifdef WIN32 #ifdef WIN32
#include "mpd_error.h"
#include "event_pipe.h" #include "event_pipe.h"
#include <glib.h> #include <glib.h>
@ -88,7 +89,7 @@ service_main(G_GNUC_UNUSED DWORD argc, G_GNUC_UNUSED CHAR *argv[])
if (service_handle == 0) { if (service_handle == 0) {
error_code = GetLastError(); error_code = GetLastError();
error_message = g_win32_error_message(error_code); error_message = g_win32_error_message(error_code);
g_error("RegisterServiceCtrlHandlerEx() failed: %s", MPD_ERROR("RegisterServiceCtrlHandlerEx() failed: %s",
error_message); error_message);
} }
@ -132,7 +133,7 @@ int win32_main(int argc, char *argv[])
} }
error_message = g_win32_error_message(error_code); error_message = g_win32_error_message(error_code);
g_error("StartServiceCtrlDispatcher() failed: %s", error_message); MPD_ERROR("StartServiceCtrlDispatcher() failed: %s", error_message);
} }
void win32_app_started() void win32_app_started()