NowPlaying: Fixed crash with CAD interface in some cases

This commit is contained in:
Birunthan Mohanathas 2012-12-26 20:00:30 +02:00
parent 132e93c857
commit fe1dc9434f

View File

@ -383,7 +383,7 @@ LRESULT CALLBACK CPlayerCAD::WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
if (player->m_Open) if (player->m_Open)
{ {
if (wcscmp(windowSz, L"foobar2000") == 0) if (windowSz && wcscmp(windowSz, L"foobar2000") == 0)
{ {
// Activate foobar2000 in case it starts minimized // Activate foobar2000 in case it starts minimized
SendMessage(player->m_PlayerWindow, WM_USER, 0, IPC_SHOW_WINDOW); SendMessage(player->m_PlayerWindow, WM_USER, 0, IPC_SHOW_WINDOW);