kernel32: Fix SearchPath parameter validation with tests.