mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-10 07:12:07 +00:00
Replace two more wcscat_s()
overlooked in last commit.
This commit is contained in:
parent
df845e0f67
commit
22617d8812
1 changed files with 8 additions and 2 deletions
|
@ -594,9 +594,15 @@ Sys_RemoveDir(const char *path)
|
|||
{
|
||||
do
|
||||
{
|
||||
if (wcslen(wpath) + wcslen(fd.cFileName) >= MAX_QPATH)
|
||||
{
|
||||
// Same as above.
|
||||
continue;
|
||||
}
|
||||
|
||||
wmemset(wpathwithfilename, 0, MAX_OSPATH);
|
||||
wcscat_s(wpathwithfilename, MAX_OSPATH, wpath);
|
||||
wcscat_s(wpathwithfilename, MAX_OSPATH, fd.cFileName);
|
||||
wcscat(wpathwithfilename, wpath);
|
||||
wcscat(wpathwithfilename, fd.cFileName);
|
||||
|
||||
DeleteFileW(wpathwithfilename);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue