Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
e10b872f
Commit
e10b872f
authored
Sep 28, 2010
by
Denis Krjuchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
main_win: replaced g_error usages with MPD_ERROR
parent
2b78358a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
main_win32.c
src/main_win32.c
+3
-2
No files found.
src/main_win32.c
View file @
e10b872f
...
@@ -22,6 +22,7 @@
...
@@ -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[])
...
@@ -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[])
...
@@ -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
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment