Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
620862e3
Commit
620862e3
authored
Dec 16, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Dec 17, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: If the package doesn't exist, return ERROR_FILE_NOT_FOUND.
parent
f933dd8b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
package.c
dlls/msi/package.c
+3
-0
package.c
dlls/msi/tests/package.c
+0
-3
No files found.
dlls/msi/package.c
View file @
620862e3
...
@@ -892,6 +892,9 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
...
@@ -892,6 +892,9 @@ UINT MSI_OpenPackageW(LPCWSTR szPackage, MSIPACKAGE **pPackage)
if
(
file
!=
szPackage
)
if
(
file
!=
szPackage
)
DeleteFileW
(
file
);
DeleteFileW
(
file
);
if
(
GetFileAttributesW
(
szPackage
)
==
INVALID_FILE_ATTRIBUTES
)
return
ERROR_FILE_NOT_FOUND
;
return
r
;
return
r
;
}
}
}
}
...
...
dlls/msi/tests/package.c
View file @
620862e3
...
@@ -2049,10 +2049,7 @@ static void test_msipackage(void)
...
@@ -2049,10 +2049,7 @@ static void test_msipackage(void)
/* nonexistent szPackagePath */
/* nonexistent szPackagePath */
r
=
MsiOpenPackage
(
"nonexistent"
,
&
hpack
);
r
=
MsiOpenPackage
(
"nonexistent"
,
&
hpack
);
todo_wine
{
ok
(
r
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
r
);
ok
(
r
==
ERROR_FILE_NOT_FOUND
,
"Expected ERROR_FILE_NOT_FOUND, got %d
\n
"
,
r
);
}
/* NULL hProduct */
/* NULL hProduct */
r
=
MsiOpenPackage
(
msifile
,
NULL
);
r
=
MsiOpenPackage
(
msifile
,
NULL
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment