small fix to properly display skins when switching skins during playback.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18959 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
vayne 2006-07-08 16:52:46 +00:00
parent a0b3f86c4d
commit 2670f98ab4
1 changed files with 1 additions and 0 deletions

View File

@ -724,6 +724,7 @@ static LRESULT CALLBACK SkinBrowserWndProc(HWND hwnd, UINT iMsg, WPARAM wParam,
int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0);
if (len)
{
if (guiIntfStruct.Playing) guiGetEvent(guiCEvent, (void *) guiSetStop);
if (skinName) free(skinName);
skinName = (char *) malloc(len+1);
SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName);