mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Protect PathIsUNCServerShare from null lpszPath.
This commit is contained in:
parent
533e7eeaf4
commit
8777effb78
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue