[SHLWAPI] No need extension to execute '.bat' files CORE-17612 (#4932)
authorJose Carlos Jesus <zecarlos1957@hotmail.com>
Fri, 10 Feb 2023 15:05:11 +0000 (11:05 -0400)
committerGitHub <noreply@github.com>
Fri, 10 Feb 2023 15:05:11 +0000 (00:05 +0900)
commitf691efefc26ef554e9715abfa1916527277599bb
tree5c6eacfa837b2c28f6b156530a588f2c52114c96
parent5c22ce374280c05b4d583e4a16192327746f1926
[SHLWAPI] No need extension to execute '.bat' files CORE-17612 (#4932)

When no extension is provided, add default extension with correct precedence using PathFileExistsDefExtW.
- Use PathFindOnPathExW when searching in current directory and PATH environment variable.
- Fix Width String terminator to UNICODE_NULL.
- Fix all failed tests on PathFindPathExW KVM test.
CORE-17612
dll/win32/kernel32/client/path.c
dll/win32/shell32/shlexec.cpp
dll/win32/shlwapi/path.c