mirror of
https://github.com/reactos/reactos.git
synced 2024-09-30 22:47:28 +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
|
@ -109,7 +109,7 @@ BOOL SdbpIsPathOnRemovableMedia(PCWSTR Path)
|
||||||
{
|
{
|
||||||
WCHAR tmp[] = { 'A',':','\\',0 };
|
WCHAR tmp[] = { 'A',':','\\',0 };
|
||||||
ULONG type;
|
ULONG type;
|
||||||
if (!Path)
|
if (!Path || Path[0] == UNICODE_NULL)
|
||||||
{
|
{
|
||||||
SHIM_ERR("Invalid argument\n");
|
SHIM_ERR("Invalid argument\n");
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
Loading…
Reference in a new issue