Commit 620862e3 authored by James Hawkins's avatar James Hawkins Committed by Alexandre Julliard

msi: If the package doesn't exist, return ERROR_FILE_NOT_FOUND.

parent f933dd8b
......@@ -892,6 +892,9 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
if (file != szPackage)
DeleteFileW( file );
if (GetFileAttributesW(szPackage) == INVALID_FILE_ATTRIBUTES)
return ERROR_FILE_NOT_FOUND;
return r;
}
}
......
......@@ -2049,10 +2049,7 @@ static void test_msipackage(void)
/* nonexistent szPackagePath */
r = MsiOpenPackage("nonexistent", &hpack);
todo_wine
{
ok(r == ERROR_FILE_NOT_FOUND, "Expected ERROR_FILE_NOT_FOUND, got %d\n", r);
}
/* NULL hProduct */
r = MsiOpenPackage(msifile, NULL);
......
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