mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[APPHELP] Fix a possible read past the buffer in SdbpIsPathOnRemovableMedia.
svn path=/trunk/; revision=74062
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user