diff --git a/PInvoke/ShlwApi/ShlwApi.PathXX.cs b/PInvoke/ShlwApi/ShlwApi.PathXX.cs index 0b876914..9040858e 100644 --- a/PInvoke/ShlwApi/ShlwApi.PathXX.cs +++ b/PInvoke/ShlwApi/ShlwApi.PathXX.cs @@ -515,7 +515,7 @@ namespace Vanara.PInvoke [DllImport(Lib.Shlwapi, SetLastError = false, CharSet = CharSet.Auto)] [PInvokeData("shlwapi.h", MSDNShortId = "d9281eb2-39b7-444f-85b7-1e1e76c38ae2")] [return: MarshalAs(UnmanagedType.Bool)] - public static extern bool PathFindOnPath(StringBuilder pszFile, [In] string[] ppszOtherDirs); + public static extern bool PathFindOnPath(StringBuilder pszFile, [In, MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.LPTStr)] string[] ppszOtherDirs); /// /// Determines whether a given file name has one of a list of suffixes.