[APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia.

svn path=/trunk/; revision=74062
This commit is contained in:
Mark Jansen 2017-03-04 20:29:46 +00:00
parent 985555c58f
commit 0adcb4d02a

View file

@ -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;