Fix a bug in the Win32EnumDirExW() function.

This commit is contained in:
Daiyuu Nobori authored and Moataz Elmasry committed 2018-02-12 23:55:34 +01:00
1 parent 79c06146a4
commit 02bcf9152c
1 file changed
+1 -1
+1 -1
View File
@@ -548,7 +548,7 @@ DIRLIST *Win32EnumDirExW(wchar_t *dirname, COMPARE *compare)
UniStrCpy(tmp2, sizeof(tmp2), dirname);
if (UniStrLen(tmp2) >= 1 && tmp[UniStrLen(tmp2) - 1] == L'\\')
if (UniStrLen(tmp2) >= 1 && tmp2[UniStrLen(tmp2) - 1] == L'\\')
{
tmp2[UniStrLen(tmp2) - 1] = 0;
}