This is the StrDup correction for MUI/Zune window titles. Thanks to Mazze for finding this.
/* the window class doesn't copy the title so we must
create a copy by ourselves to avoid corrupt window title */
tmpfilename = StrDup(filename);
set ( globalActiveWindow->win, MUIA_Window_Title, tmpfilename );
set ( globalActiveWindow->projName, MUIA_String_Contents, tmpfilename );