From 284bfef82a151ff6f8078545f9652032680cffdb Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 30 Apr 2008 01:52:22 -0400 Subject: [PATCH] More Windows fixes. I fail at cut-and-paste. --HG-- branch : trunk --- finderrors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/finderrors.c b/finderrors.c index 6222e3bd..3e5da2d4 100644 --- a/finderrors.c +++ b/finderrors.c @@ -100,14 +100,14 @@ static int do_dir(const char *dname, const char *profile) #ifdef _MSC_VER WIN32_FIND_DATA dent; HANDLE dirp = INVALID_HANDLE_VALUE; - FindFirstFileA(wSearchPath, &entw); + FindFirstFileA(dname, &dent); if (dirp != INVALID_HANDLE_VALUE) { do { if (!do_file(profile, dname, dent.cFileName, &total)) break; - } while (pFindNextFileA(dirp, &dent) != 0); + } while (FindNextFileA(dirp, &dent) != 0); CloseHandle(dirp); } // if #else