dir_list.c - Get rid of dependencies on miscellaneous.h

This commit is contained in:
twinaphex 2014-10-21 02:46:37 +02:00
parent 90002bfeda
commit 0a8226a08d

View File

@ -17,7 +17,6 @@
#include "dir_list.h"
#include "file_path.h"
#include "compat/strl.h"
#include "miscellaneous.h"
#if defined(_WIN32)
#ifdef _MSC_VER
@ -151,7 +150,6 @@ struct string_list *dir_list_new(const char *dir,
return list;
error:
RARCH_ERR("Failed to open directory: \"%s\"\n", dir);
if (hFind != INVALID_HANDLE_VALUE)
FindClose(hFind);
@ -251,7 +249,6 @@ struct string_list *dir_list_new(const char *dir,
return list;
error:
RARCH_ERR("Failed to open directory: \"%s\"\n", dir);
if (directory)
closedir(directory);