mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2024-11-23 01:49:53 +03:00
Fix a bug in the Win32EnumDirExW() function.
This commit is contained in:
parent
79c06146a4
commit
02bcf9152c
@ -548,7 +548,7 @@ DIRLIST *Win32EnumDirExW(wchar_t *dirname, COMPARE *compare)
|
|||||||
|
|
||||||
UniStrCpy(tmp2, sizeof(tmp2), dirname);
|
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;
|
tmp2[UniStrLen(tmp2) - 1] = 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user