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
18ebf2c5
Commit
18ebf2c5
authored
Sep 02, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Sep 02, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Return an error from MsiDatabaseGetPrimaryKeys if the table does not exist.
parent
00327065
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
0 deletions
+6
-0
msiquery.c
dlls/msi/msiquery.c
+3
-0
record.c
dlls/msi/tests/record.c
+3
-0
No files found.
dlls/msi/msiquery.c
View file @
18ebf2c5
...
...
@@ -901,6 +901,9 @@ UINT MSI_DatabaseGetPrimaryKeys( MSIDATABASE *db,
MSIQUERY
*
query
=
NULL
;
UINT
r
;
if
(
!
TABLE_Exists
(
db
,
table
))
return
ERROR_INVALID_TABLE
;
r
=
MSI_OpenQuery
(
db
,
&
query
,
sql
,
table
);
if
(
r
!=
ERROR_SUCCESS
)
return
r
;
...
...
dlls/msi/tests/record.c
View file @
18ebf2c5
...
...
@@ -589,6 +589,9 @@ static void test_fieldzero(void)
MsiCloseHandle
(
rec
);
r
=
MsiDatabaseGetPrimaryKeysA
(
hdb
,
"nosuchtable"
,
&
rec
);
ok
(
r
==
ERROR_INVALID_TABLE
,
"Expected ERROR_INVALID_TABLE, got %d
\n
"
,
r
);
query
=
"SELECT * FROM `drone` WHERE `id` = 1"
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
hview
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
...
...
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