mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2025-02-01 05:30:58 +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
|
do
|
||||||
{
|
{
|
||||||
|
if (wcslen(wpath) + wcslen(fd.cFileName) >= MAX_QPATH)
|
||||||
|
{
|
||||||
|
// Same as above.
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
wmemset(wpathwithfilename, 0, MAX_OSPATH);
|
wmemset(wpathwithfilename, 0, MAX_OSPATH);
|
||||||
wcscat_s(wpathwithfilename, MAX_OSPATH, wpath);
|
wcscat(wpathwithfilename, wpath);
|
||||||
wcscat_s(wpathwithfilename, MAX_OSPATH, fd.cFileName);
|
wcscat(wpathwithfilename, fd.cFileName);
|
||||||
|
|
||||||
DeleteFileW(wpathwithfilename);
|
DeleteFileW(wpathwithfilename);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue