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
12baa13b
Commit
12baa13b
authored
Sep 01, 2006
by
Mike McCormack
Committed by
Alexandre Julliard
Sep 07, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: Make opening and closing 4000 handle into two tests, not 20000.
parent
bb127642
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
db.c
dlls/msi/tests/db.c
+8
-7
No files found.
dlls/msi/tests/db.c
View file @
12baa13b
...
...
@@ -1371,22 +1371,23 @@ static void test_handle_limit(void)
static
char
szQueryBuf
[
256
]
=
"SELECT * from `_Tables`"
;
hviews
[
i
]
=
0xdeadbeeb
;
r
=
MsiDatabaseOpenView
(
hdb
,
szQueryBuf
,
&
hviews
[
i
]);
ok
(
r
==
ERROR_SUCCESS
,
"failed to open query %d
\n
"
,
i
);
ok
(
hviews
[
i
]
!=
0xdeadbeeb
,
"no handle set
\n
"
);
ok
(
hviews
[
i
]
!=
0
,
"%d'th handle is NULL
\n
"
,
i
);
if
(
!
hviews
[
i
])
if
(
r
!=
ERROR_SUCCESS
||
hviews
[
i
]
==
0xdeadbeeb
||
hviews
[
i
]
==
0
||
(
i
&&
(
hviews
[
i
]
==
hviews
[
i
-
1
])))
break
;
ok
(
(
i
==
0
||
(
hviews
[
i
]
!=
hviews
[
i
-
1
])),
"got handle %p twice
\n
"
,
(
void
*
)
hviews
[
i
]
);
}
ok
(
i
==
MY_NVIEWS
,
"problem opening views
\n
"
);
for
(
i
=
0
;
i
<
MY_NVIEWS
;
i
++
)
{
if
(
hviews
[
i
]
!=
0
&&
hviews
[
i
]
!=
0xdeadbeeb
)
{
r
=
MsiCloseHandle
(
hviews
[
i
]);
ok
(
r
==
ERROR_SUCCESS
,
"failed to close view handle %d
\n
"
,
i
);
if
(
r
!=
ERROR_SUCCESS
)
break
;
}
}
ok
(
i
==
MY_NVIEWS
,
"problem closing views
\n
"
);
r
=
MsiCloseHandle
(
hdb
);
ok
(
r
==
ERROR_SUCCESS
,
"failed to close database
\n
"
);
}
...
...
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