Re: [PATCH 1/2] shell32: Add a test for FindExecutableA.
1 Aug
2008
1 Aug
'08
2:57 a.m.
"Lei Zhang" <thestig(a)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(a)winehq.org
6342
Age (days ago)
6342
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard