mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-15 08:52:57 +00:00
shell32: Avoid potential 1 byte overflow.
This commit is contained in:
parent
af62bcbd32
commit
29700766ea
|
@ -654,6 +654,8 @@ UINT SHELL_FindExecutable(LPCWSTR lpPath, LPCWSTR lpFile, LPCWSTR lpOperation,
|
|||
&filetypelen) == ERROR_SUCCESS)
|
||||
{
|
||||
filetypelen /= sizeof(WCHAR);
|
||||
if (filetypelen == sizeof(filetype)/sizeof(WCHAR))
|
||||
filetypelen--;
|
||||
filetype[filetypelen] = '\0';
|
||||
TRACE("File type: %s\n", debugstr_w(filetype));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue