This commit is contained in:
Katayama Hirofumi MZ 2024-05-13 15:44:32 +09:00
parent 44079fe798
commit 3ffcaf42a8
2 changed files with 9 additions and 8 deletions

View file

@ -82,7 +82,7 @@ IContextMenu_Invoke(
* PathAddDefExt [Internal]
*/
static BOOL
PathAddDefExt(
PathAddDefExtW(
_Inout_ LPWSTR pszPath,
_In_ DWORD dwFlags,
_Out_opt_ LPDWORD pdwAttrs)
@ -128,7 +128,6 @@ PathAddDefExt(
if (s_DotExts[iExt])
break;
} while (FindNextFileW(hFind, &FindData));
FindClose(hFind);
@ -146,16 +145,18 @@ BOOL WINAPI
PathFileExistsDefExtAndAttributesW(
_Inout_ LPWSTR pszPath,
_In_ DWORD dwFlags,
_Out_opt_ LPDWORD pdwAttrs)
_Out_opt_ LPDWORD pdwFileAttributes)
{
if (pdwAttrs)
*pdwAttrs = INVALID_FILE_ATTRIBUTES;
TRACE("(%s, 0x%lX, %p)\n", debugstr_w(pszPath), dwFlags, pdwFileAttributes);
if (pdwFileAttributes)
*pdwFileAttributes = INVALID_FILE_ATTRIBUTES;
if (!pszPath)
return FALSE;
if (!dwFlags || (*PathFindExtensionW(pszPath) && (dwFlags & PADE_OPTIONAL)))
return PathFileExistsAndAttributes(pszPath, pdwAttrs);
return PathFileExistsAndAttributesW(pszPath, pdwFileAttributes);
return PathAddDefExt(pszPath, dwFlags, pdwAttrs);
return PathAddDefExtW(pszPath, dwFlags, pdwFileAttributes);
}

View file

@ -338,7 +338,7 @@ BOOL WINAPI
PathFileExistsDefExtAndAttributesW(
_Inout_ LPWSTR pszPath,
_In_ DWORD dwFlags,
_Out_opt_ LPDWORD pdwAttrs);
_Out_opt_ LPDWORD pdwFileAttributes);
#ifdef __cplusplus
} /* extern "C" */