core: Fix crash on Windows

Thanks to Clementine devs for the patch!


git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1380 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
ximion
2012-01-05 21:06:13 +00:00
parent f4306c0cd0
commit 562700a643

View File

@ -84,6 +84,8 @@ void PresetLoader::rescan()
while ( ( dir_entry = readdir ( _dir ) ) != NULL )
{
if (dir_entry->d_name == 0)
continue;
std::ostringstream out;
// Convert char * to friendly string