From fe1dc9434f9265b063181b53a5d8a1afe494615f Mon Sep 17 00:00:00 2001 From: Birunthan Mohanathas Date: Wed, 26 Dec 2012 20:00:30 +0200 Subject: [PATCH] NowPlaying: Fixed crash with CAD interface in some cases --- Plugins/PluginNowPlaying/PlayerCAD.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginNowPlaying/PlayerCAD.cpp b/Plugins/PluginNowPlaying/PlayerCAD.cpp index b2df429f..06215258 100644 --- a/Plugins/PluginNowPlaying/PlayerCAD.cpp +++ b/Plugins/PluginNowPlaying/PlayerCAD.cpp @@ -383,7 +383,7 @@ LRESULT CALLBACK CPlayerCAD::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM if (player->m_Open) { - if (wcscmp(windowSz, L"foobar2000") == 0) + if (windowSz && wcscmp(windowSz, L"foobar2000") == 0) { // Activate foobar2000 in case it starts minimized SendMessage(player->m_PlayerWindow, WM_USER, 0, IPC_SHOW_WINDOW);