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
5e81dbeb
Commit
5e81dbeb
authored
Jul 29, 2007
by
James Hawkins
Committed by
Alexandre Julliard
Jul 30, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Treat an empty string and a NULL string as the same value.
parent
d03e2696
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
db.c
dlls/msi/tests/db.c
+18
-0
where.c
dlls/msi/where.c
+2
-1
No files found.
dlls/msi/tests/db.c
View file @
5e81dbeb
...
...
@@ -1562,6 +1562,24 @@ static void test_where(void)
ok
(
r
==
ERROR_SUCCESS
,
"query failed: %d
\n
"
,
r
);
MsiCloseHandle
(
rec
);
rec
=
MsiCreateRecord
(
1
);
MsiRecordSetString
(
rec
,
1
,
""
);
query
=
"SELECT * FROM `Media` WHERE `DiskPrompt` = ?"
;
r
=
MsiDatabaseOpenView
(
hdb
,
query
,
&
view
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
r
=
MsiViewExecute
(
view
,
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
MsiCloseHandle
(
rec
);
r
=
MsiViewFetch
(
view
,
&
rec
);
ok
(
r
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
r
);
MsiCloseHandle
(
rec
);
MsiViewClose
(
view
);
MsiCloseHandle
(
view
);
MsiCloseHandle
(
hdb
);
DeleteFile
(
msifile
);
}
...
...
dlls/msi/where.c
View file @
5e81dbeb
...
...
@@ -192,7 +192,8 @@ static UINT STRCMP_Evaluate( MSIWHEREVIEW *wv, UINT row, const struct expr *cond
l_str
=
STRING_evaluate
(
wv
,
row
,
cond
->
u
.
expr
.
left
,
record
);
r_str
=
STRING_evaluate
(
wv
,
row
,
cond
->
u
.
expr
.
right
,
record
);
if
(
l_str
==
r_str
)
if
(
l_str
==
r_str
||
((
!
l_str
||
!*
l_str
)
&&
(
!
r_str
||
!*
r_str
))
)
sr
=
0
;
else
if
(
l_str
&&
!
r_str
)
sr
=
1
;
...
...
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