diff options
author | Denis Krjuchkov <alcohold@gmail.com> | 2010-09-28 22:38:57 +0600 |
---|---|---|
committer | Denis Krjuchkov <alcohold@gmail.com> | 2010-09-28 22:38:57 +0600 |
commit | e10b872fc328079cb61d8ff7a3a7e746ba26c586 (patch) | |
tree | 91de8f3c1eb25ad202e2802d1f7de9fa49cf3c7b /src | |
parent | 2b78358af5b883c7fefc2b22b2693c5e4af6e1d3 (diff) | |
download | mpd-e10b872fc328079cb61d8ff7a3a7e746ba26c586.tar.gz mpd-e10b872fc328079cb61d8ff7a3a7e746ba26c586.tar.xz mpd-e10b872fc328079cb61d8ff7a3a7e746ba26c586.zip |
main_win: replaced g_error usages with MPD_ERROR
Diffstat (limited to 'src')
-rw-r--r-- | src/main_win32.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/main_win32.c b/src/main_win32.c index b2d6a0d12..543d8ba81 100644 --- a/src/main_win32.c +++ b/src/main_win32.c @@ -22,6 +22,7 @@ #ifdef WIN32 +#include "mpd_error.h" #include "event_pipe.h" #include <glib.h> @@ -88,8 +89,8 @@ service_main(G_GNUC_UNUSED DWORD argc, G_GNUC_UNUSED CHAR *argv[]) if (service_handle == 0) { error_code = GetLastError(); error_message = g_win32_error_message(error_code); - g_error("RegisterServiceCtrlHandlerEx() failed: %s", - error_message); + MPD_ERROR("RegisterServiceCtrlHandlerEx() failed: %s", + error_message); } service_notify_status(SERVICE_START_PENDING); @@ -132,7 +133,7 @@ int win32_main(int argc, char *argv[]) } 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() |