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
90e913c4
Commit
90e913c4
authored
May 22, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
May 22, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Avoid storing rows that don't match the query condition.
parent
aca407bf
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
15 deletions
+17
-15
builtin.c
dlls/wbemprox/builtin.c
+0
-0
table.c
dlls/wbemprox/table.c
+16
-15
wbemprox_private.h
dlls/wbemprox/wbemprox_private.h
+1
-0
No files found.
dlls/wbemprox/builtin.c
View file @
90e913c4
This diff is collapsed.
Click to expand it.
dlls/wbemprox/table.c
View file @
90e913c4
...
...
@@ -263,26 +263,30 @@ HRESULT get_method( const struct table *table, const WCHAR *name, class_method *
}
void
clear_table
(
struct
table
*
table
)
void
free_row_values
(
const
struct
table
*
table
,
UINT
row
)
{
UINT
i
,
j
,
type
;
UINT
i
,
type
;
LONGLONG
val
;
if
(
!
table
->
data
)
return
;
for
(
i
=
0
;
i
<
table
->
num_rows
;
i
++
)
{
for
(
j
=
0
;
j
<
table
->
num_cols
;
j
++
)
for
(
i
=
0
;
i
<
table
->
num_cols
;
i
++
)
{
if
(
!
(
table
->
columns
[
j
].
type
&
COL_FLAG_DYNAMIC
))
continue
;
if
(
!
(
table
->
columns
[
i
].
type
&
COL_FLAG_DYNAMIC
))
continue
;
type
=
table
->
columns
[
j
].
type
&
COL_TYPE_MASK
;
type
=
table
->
columns
[
i
].
type
&
COL_TYPE_MASK
;
if
(
type
==
CIM_STRING
||
type
==
CIM_DATETIME
||
(
type
&
CIM_FLAG_ARRAY
))
{
if
(
get_value
(
table
,
i
,
j
,
&
val
)
==
S_OK
)
heap_free
(
(
void
*
)(
INT_PTR
)
val
);
}
if
(
get_value
(
table
,
row
,
i
,
&
val
)
==
S_OK
)
heap_free
(
(
void
*
)(
INT_PTR
)
val
);
}
}
}
void
clear_table
(
struct
table
*
table
)
{
UINT
i
;
if
(
!
table
->
data
)
return
;
for
(
i
=
0
;
i
<
table
->
num_rows
;
i
++
)
free_row_values
(
table
,
i
);
if
(
table
->
fill
)
{
table
->
num_rows
=
0
;
...
...
@@ -295,10 +299,7 @@ void free_columns( struct column *columns, UINT num_cols )
{
UINT
i
;
for
(
i
=
0
;
i
<
num_cols
;
i
++
)
{
heap_free
(
(
WCHAR
*
)
columns
[
i
].
name
);
}
for
(
i
=
0
;
i
<
num_cols
;
i
++
)
{
heap_free
(
(
WCHAR
*
)
columns
[
i
].
name
);
}
heap_free
(
columns
);
}
...
...
dlls/wbemprox/wbemprox_private.h
View file @
90e913c4
...
...
@@ -178,6 +178,7 @@ struct table *create_table( const WCHAR *, UINT, const struct column *, UINT, BY
enum
fill_status
(
*
)(
struct
table
*
,
const
struct
expr
*
)
)
DECLSPEC_HIDDEN
;
BOOL
add_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
void
free_columns
(
struct
column
*
,
UINT
)
DECLSPEC_HIDDEN
;
void
free_row_values
(
const
struct
table
*
,
UINT
)
DECLSPEC_HIDDEN
;
void
clear_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
void
free_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
UINT
get_type_size
(
CIMTYPE
)
DECLSPEC_HIDDEN
;
...
...
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