[PATCH 1/2] shell32: Add a test for FindExecutableA.
Alexandre Julliard
julliard at winehq.org
Fri Aug 1 02:57:01 CDT 2008
"Lei Zhang" <thestig at google.com> writes:
> + {
> + char expand[MAX_PATH];
> + strcpy(command, "foobar");
> + strcpy(filename, "foo.msi");
> + file = CreateFileA(filename, GENERIC_WRITE, 0, NULL, CREATE_ALWAYS, 0, NULL);
> + ok(file != INVALID_HANDLE_VALUE, "Failure to open file %s\n", filename);
> + CloseHandle(file);
> +
> + ok(ExpandEnvironmentStringsA("\%systemroot\%\\system32\\msiexec.exe", expand, MAX_PATH) != 0, "ExpandEnvironmentStringsA failed\n");
Again, please don't hardcode system32, use GetSystemDirectory instead.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list