mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 08:25:03 +00:00
[SHELL32] Fix a potential buffer overrun.
Patch by Kudratov Olimjon. CORE-8545
This commit is contained in:
parent
bb7292b287
commit
1e20a3e5b5
1 changed files with 1 additions and 1 deletions
|
@ -519,7 +519,7 @@ static LPWSTR Stream_LoadPath(LPCSTR p, DWORD maxlen)
|
|||
{
|
||||
UINT len = 0;
|
||||
|
||||
while (p[len] && len < maxlen)
|
||||
while (len < maxlen && p[len])
|
||||
len++;
|
||||
|
||||
UINT wlen = MultiByteToWideChar(CP_ACP, 0, p, len, NULL, 0);
|
||||
|
|
Loading…
Reference in a new issue