Protect PathIsUNCServerShare from null lpszPath.

This commit is contained in:
Lawson Whitney 2002-02-20 18:55:06 +00:00 committed by Alexandre Julliard
parent 533e7eeaf4
commit 8777effb78

View file

@ -1305,6 +1305,7 @@ BOOL WINAPI PathIsUNCServerShareA(
LPCSTR lpszPath)
{
TRACE("%s\n", debugstr_a(lpszPath));
if (!lpszPath) return FALSE;
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
{
int foundbackslash = 0;
@ -1327,6 +1328,7 @@ BOOL WINAPI PathIsUNCServerShareW(
LPCWSTR lpszPath)
{
TRACE("%s\n", debugstr_w(lpszPath));
if (!lpszPath) return FALSE;
if (lpszPath[0]=='\\' && lpszPath[1]=='\\')
{
int foundbackslash = 0;