mirror of
https://github.com/reactos/reactos.git
synced 2025-01-03 21:09:19 +00:00
[APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia.
svn path=/trunk/; revision=74062
This commit is contained in:
parent
985555c58f
commit
0adcb4d02a
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ BOOL SdbpIsPathOnRemovableMedia(PCWSTR Path)
|
|||
{
|
||||
WCHAR tmp[] = { 'A',':','\\',0 };
|
||||
ULONG type;
|
||||
if (!Path)
|
||||
if (!Path || Path[0] == UNICODE_NULL)
|
||||
{
|
||||
SHIM_ERR("Invalid argument\n");
|
||||
return FALSE;
|
||||
|
|
Loading…
Reference in a new issue