diff options
| author | 2017-05-24 12:10:49 +0200 | |
|---|---|---|
| committer | 2017-05-24 12:10:49 +0200 | |
| commit | 8b81b079117e37d8e09d110bdffd3e6eaf2a3543 (patch) | |
| tree | df3940628d12129edd67f9ce8f4282129fbb8956 /src/modules/mediaplayer/MpWinampInterface.cpp | |
| parent | Build also in debug mode for windows (#2192) (diff) | |
| download | KVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.tar.gz KVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.tar.bz2 KVIrc-8b81b079117e37d8e09d110bdffd3e6eaf2a3543.zip | |
Make Windows code Unicode-aware (#2219)
Diffstat (limited to 'src/modules/mediaplayer/MpWinampInterface.cpp')
| -rw-r--r-- | src/modules/mediaplayer/MpWinampInterface.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/mediaplayer/MpWinampInterface.cpp b/src/modules/mediaplayer/MpWinampInterface.cpp index 88846bf01..0d08cc4b5 100644 --- a/src/modules/mediaplayer/MpWinampInterface.cpp +++ b/src/modules/mediaplayer/MpWinampInterface.cpp @@ -175,7 +175,7 @@ static QTextCodec * mediaplayer_get_codec() static HWND find_winamp(KviWinampInterface * i) { - HWND hWnd = FindWindow("Winamp v1.x", NULL); + HWND hWnd = FindWindow(TEXT("Winamp v1.x"), NULL); if(!hWnd) { // try to start the process ? @@ -429,11 +429,11 @@ bool KviWinampInterface::jumpTo(kvs_int_t & iPos) bool KviWinampInterface::hide() { HWND hWinamp = find_winamp(this); - HWND hWinampPE = FindWindow("Winamp PE", NULL); /*Playlist*/ - HWND hWinampEQ = FindWindow("Winamp EQ", NULL); /*Equalizer*/ - HWND hWinampMB = FindWindow("Winamp MB", NULL); /*MiniBrowser*/ - HWND hWinampGen = FindWindow("Winamp Gen", NULL); /*Library*/ - HWND hWinampVideo = FindWindow("Winamp Video", NULL); /*Video*/ + HWND hWinampPE = FindWindow(TEXT("Winamp PE"), NULL); /*Playlist*/ + HWND hWinampEQ = FindWindow(TEXT("Winamp EQ"), NULL); /*Equalizer*/ + HWND hWinampMB = FindWindow(TEXT("Winamp MB"), NULL); /*MiniBrowser*/ + HWND hWinampGen = FindWindow(TEXT("Winamp Gen"), NULL); /*Library*/ + HWND hWinampVideo = FindWindow(TEXT("Winamp Video"), NULL); /*Video*/ if(hWinamp) { ShowWindow(hWinamp, SW_HIDE); |
