Commit ce3dd89b authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

shlwapi: Avoid harcoding array lengths.

parent a46790b3
...@@ -1074,7 +1074,7 @@ int WINAPI PathParseIconLocationW(LPWSTR lpszPath) ...@@ -1074,7 +1074,7 @@ int WINAPI PathParseIconLocationW(LPWSTR lpszPath)
*/ */
BOOL WINAPI PathFileExistsDefExtW(LPWSTR lpszPath,DWORD dwWhich) BOOL WINAPI PathFileExistsDefExtW(LPWSTR lpszPath,DWORD dwWhich)
{ {
static const WCHAR pszExts[7][5] = { { '.', 'p', 'i', 'f', 0}, static const WCHAR pszExts[][5] = { { '.', 'p', 'i', 'f', 0},
{ '.', 'c', 'o', 'm', 0}, { '.', 'c', 'o', 'm', 0},
{ '.', 'e', 'x', 'e', 0}, { '.', 'e', 'x', 'e', 0},
{ '.', 'b', 'a', 't', 0}, { '.', 'b', 'a', 't', 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