Skip to content

Commit a5cac2f

Browse files
committed
update
1 parent 6058736 commit a5cac2f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

main.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using json = nlohmann::json;
1212

1313
DECLARE_COMPONENT_VERSION(
14-
"LDDCDesktopLyrics",
14+
"LDDC Desktop Lyrics",
1515
"0.0.1",
1616
"Foobar2000 plugin for displaying lyrics on the desktop."
1717
);
@@ -79,13 +79,13 @@ class LDDCDesktopLyricsInitQuit : public initquit {
7979
}
8080

8181
void on_quit() override {
82-
play_callback_manager::get()->unregister_callback(play_callback_impl);
8382
if (lddc) {
8483
lddc->shutdown();
8584
delete lddc;
8685
lddc = nullptr;
8786
}
8887
if (play_callback_impl) {
88+
play_callback_manager::get()->unregister_callback(play_callback_impl);
8989
delete play_callback_impl;
9090
play_callback_impl = nullptr;
9191
}
@@ -162,7 +162,7 @@ class LDDCDesktopLyricsInitQuit : public initquit {
162162
siStartInfo.dwFlags |= STARTF_USESTDHANDLES | STARTF_USESHOWWINDOW;
163163
siStartInfo.wShowWindow = SW_HIDE;
164164

165-
std::string cmdline = "cmd /c " + cmd;
165+
std::string cmdline = "cmd /c \"" + cmd + "\"";
166166
std::wstring cmdline_w = string_to_wstring(cmdline);
167167

168168
if (!CreateProcess(NULL, const_cast<LPWSTR>(cmdline_w.c_str()), NULL, NULL, TRUE, 0, NULL, NULL, &siStartInfo, &piProcInfo)) {

0 commit comments

Comments
 (0)