Commit 9d6204b2 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

shell32: Avoid null pointer dereference in traces.

parent 85ce39dd
...@@ -669,37 +669,27 @@ BOOL WINAPI PathQualifyAW(LPCVOID pszPath) ...@@ -669,37 +669,27 @@ BOOL WINAPI PathQualifyAW(LPCVOID pszPath)
return PathQualifyA(pszPath); return PathQualifyA(pszPath);
} }
static BOOL PathResolveA( static BOOL PathResolveA(LPSTR path, LPCSTR *paths, DWORD flags)
LPSTR lpszPath,
LPCSTR *alpszPaths,
DWORD dwFlags)
{ {
FIXME("(%s,%p,0x%08x),stub!\n", FIXME("(%s,%p,0x%08x),stub!\n", debugstr_a(path), paths, flags);
lpszPath, *alpszPaths, dwFlags); return FALSE;
return 0;
} }
static BOOL PathResolveW( static BOOL PathResolveW(LPWSTR path, LPCWSTR *paths, DWORD flags)
LPWSTR lpszPath,
LPCWSTR *alpszPaths,
DWORD dwFlags)
{ {
FIXME("(%s,%p,0x%08x),stub!\n", FIXME("(%s,%p,0x%08x),stub!\n", debugstr_w(path), paths, flags);
debugstr_w(lpszPath), debugstr_w(*alpszPaths), dwFlags); return FALSE;
return 0;
} }
/************************************************************************* /*************************************************************************
* PathResolve [SHELL32.51] * PathResolve [SHELL32.51]
*/ */
BOOL WINAPI PathResolveAW( BOOL WINAPI PathResolveAW(LPVOID path, LPCVOID *paths, DWORD flags)
LPVOID lpszPath,
LPCVOID *alpszPaths,
DWORD dwFlags)
{ {
if (SHELL_OsIsUnicode()) if (SHELL_OsIsUnicode())
return PathResolveW(lpszPath, (LPCWSTR*)alpszPaths, dwFlags); return PathResolveW(path, (LPCWSTR*)paths, flags);
return PathResolveA(lpszPath, (LPCSTR*)alpszPaths, dwFlags); else
return PathResolveA(path, (LPCSTR*)paths, flags);
} }
/************************************************************************* /*************************************************************************
......
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