Protect PathIsUNCServerShare from null lpszPath.
This commit is contained in:
parent
533e7eeaf4
commit
8777effb78
|
@ -1305,6 +1305,7 @@ BOOL WINAPI PathIsUNCServerShareA(
|
||||||
LPCSTR lpszPath)
|
LPCSTR lpszPath)
|
||||||
{
|
{
|
||||||
TRACE("%s\n", debugstr_a(lpszPath));
|
TRACE("%s\n", debugstr_a(lpszPath));
|
||||||
|
if (!lpszPath) return FALSE;
|
||||||
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
|
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
|
||||||
{
|
{
|
||||||
int foundbackslash = 0;
|
int foundbackslash = 0;
|
||||||
|
@ -1327,6 +1328,7 @@ BOOL WINAPI PathIsUNCServerShareW(
|
||||||
LPCWSTR lpszPath)
|
LPCWSTR lpszPath)
|
||||||
{
|
{
|
||||||
TRACE("%s\n", debugstr_w(lpszPath));
|
TRACE("%s\n", debugstr_w(lpszPath));
|
||||||
|
if (!lpszPath) return FALSE;
|
||||||
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
|
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
|
||||||
{
|
{
|
||||||
int foundbackslash = 0;
|
int foundbackslash = 0;
|
||||||
|
|
Loading…
Reference in New Issue