Commit f1c3191b authored by Saulius Krasuckas's avatar Saulius Krasuckas Committed by Alexandre Julliard

kernel: Check for an exe which is always present in a system dir.

parent 0f6cb886
...@@ -1448,7 +1448,7 @@ static void test_OpenFile_exists(void) ...@@ -1448,7 +1448,7 @@ static void test_OpenFile_exists(void)
HFILE hFile; HFILE hFile;
OFSTRUCT ofs; OFSTRUCT ofs;
static const char *file = "\\winver.exe"; static const char *file = "\\regsvr32.exe";
char buff[MAX_PATH]; char buff[MAX_PATH];
UINT length; UINT length;
...@@ -1456,7 +1456,7 @@ static void test_OpenFile_exists(void) ...@@ -1456,7 +1456,7 @@ static void test_OpenFile_exists(void)
if ((length + lstrlen(file) < MAX_PATH)) if ((length + lstrlen(file) < MAX_PATH))
{ {
lstrcat(buff, file); lstrcatA(buff, file);
hFile = OpenFile(buff, &ofs, OF_EXIST); hFile = OpenFile(buff, &ofs, OF_EXIST);
ok( hFile == TRUE, "%s not found : %ld\n", buff, GetLastError()); ok( hFile == TRUE, "%s not found : %ld\n", buff, GetLastError());
......
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