aboutsummaryrefslogtreecommitdiffstats
path: root/src/Win32Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-09-05 18:20:52 +0200
committerMax Kellermann <max@duempel.org>2013-09-05 18:26:46 +0200
commit7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa (patch)
tree03c6b14d6d54f4657aa5939982aec7f942e47c46 /src/Win32Main.cxx
parent3330aa6f6a7fcd903f74cb8342f315ad35b54ead (diff)
downloadmpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.tar.gz
mpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.tar.xz
mpd-7a4c9f5f4c38b568a51ec13988f5fcfbbe278afa.zip
mpd_error.h: remove obsolete header
Migrate the remaining callers to FatalError().
Diffstat (limited to 'src/Win32Main.cxx')
-rw-r--r--src/Win32Main.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Win32Main.cxx b/src/Win32Main.cxx
index d495fe088..03be38db6 100644
--- a/src/Win32Main.cxx
+++ b/src/Win32Main.cxx
@@ -23,8 +23,8 @@
#ifdef WIN32
#include "gcc.h"
-#include "mpd_error.h"
#include "GlobalEvents.hxx"
+#include "system/FatalError.hxx"
#include <cstdlib>
#include <atomic>
@@ -92,8 +92,8 @@ service_main(gcc_unused DWORD argc, gcc_unused CHAR *argv[])
if (service_handle == 0) {
error_code = GetLastError();
error_message = g_win32_error_message(error_code);
- MPD_ERROR("RegisterServiceCtrlHandlerEx() failed: %s",
- error_message);
+ FormatFatalError("RegisterServiceCtrlHandlerEx() failed: %s",
+ error_message);
}
service_notify_status(SERVICE_START_PENDING);
@@ -150,7 +150,8 @@ int win32_main(int argc, char *argv[])
}
error_message = g_win32_error_message(error_code);
- MPD_ERROR("StartServiceCtrlDispatcher() failed: %s", error_message);
+ FormatFatalError("StartServiceCtrlDispatcher() failed: %s",
+ error_message);
}
void win32_app_started()