NowPlayingPlugin: Minor changes.

This commit is contained in:
Birunthan Mohanathas
2011-07-15 15:18:02 +00:00
parent 5e20238120
commit 20e2a53324
5 changed files with 18 additions and 20 deletions

View File

@ -20,6 +20,7 @@
#include "PlayerWMP.h"
CPlayer* CPlayerWMP::c_Player = NULL;
extern HINSTANCE g_Instance;
/*
** CRemoteHost
@ -199,11 +200,9 @@ CPlayer* CPlayerWMP::Create()
*/
void CPlayerWMP::Initialize()
{
HINSTANCE hInstance = GetModuleHandle(NULL);
// Create windows class
WNDCLASS wc = {0};
wc.hInstance = hInstance;
wc.hInstance = g_Instance;
wc.lpfnWndProc = DefWindowProc;
wc.lpszClassName = L"NowPlayingWMPClass";
RegisterClass(&wc);
@ -218,7 +217,7 @@ void CPlayerWMP::Initialize()
CW_USEDEFAULT,
NULL,
NULL,
hInstance,
g_Instance,
NULL);
if (!m_Window)
@ -366,7 +365,7 @@ void CPlayerWMP::Uninitialize()
m_AxWindow->DestroyWindow();
delete m_AxWindow;
DestroyWindow(m_Window);
UnregisterClass(L"NowPlayingWMPClass", GetModuleHandle(NULL));
UnregisterClass(L"NowPlayingWMPClass", g_Instance);
}
}