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
14888708
Commit
14888708
authored
Jul 23, 2010
by
Hans Leidekker
Committed by
Alexandre Julliard
Jul 23, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi/tests: Initialize a string buffer and fix some leaks.
parent
bb5ab267
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
db.c
dlls/msi/tests/db.c
+4
-0
No files found.
dlls/msi/tests/db.c
View file @
14888708
...
...
@@ -8886,6 +8886,7 @@ static void test_createtable(void)
size
=
sizeof
(
buffer
);
res
=
MsiRecordGetString
(
hrec
,
1
,
buffer
,
&
size
);
todo_wine
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
MsiCloseHandle
(
hrec
);
res
=
MsiViewClose
(
htab
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
@@ -8915,10 +8916,12 @@ static void test_createtable(void)
res
=
MsiViewGetColumnInfo
(
htab
,
MSICOLINFO_NAMES
,
&
hrec
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
buffer
[
0
]
=
0
;
size
=
sizeof
(
buffer
);
res
=
MsiRecordGetString
(
hrec
,
1
,
buffer
,
&
size
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
ok
(
!
strcmp
(
buffer
,
"b"
),
"b != %s
\n
"
,
buffer
);
MsiCloseHandle
(
hrec
);
res
=
MsiViewClose
(
htab
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
@@ -8942,6 +8945,7 @@ static void test_createtable(void)
res
=
MsiViewGetColumnInfo
(
htab
,
MSICOLINFO_NAMES
,
&
hrec
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
buffer
[
0
]
=
0
;
size
=
sizeof
(
buffer
);
res
=
MsiRecordGetString
(
hrec
,
1
,
buffer
,
&
size
);
ok
(
res
==
ERROR_SUCCESS
,
"Expected ERROR_SUCCESS, got %d
\n
"
,
res
);
...
...
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