Commit 8777effb authored by Lawson Whitney's avatar Lawson Whitney Committed by Alexandre Julliard

Protect PathIsUNCServerShare from null lpszPath.

parent 533e7eea
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment