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
0f8cbab1
Commit
0f8cbab1
authored
Jun 04, 2013
by
Hans Leidekker
Committed by
Alexandre Julliard
Jun 04, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Add a function to resize a table.
parent
f4da96bb
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
3 deletions
+6
-3
builtin.c
dlls/wbemprox/builtin.c
+0
-0
class.c
dlls/wbemprox/class.c
+1
-1
table.c
dlls/wbemprox/table.c
+3
-1
wbemprox_private.h
dlls/wbemprox/wbemprox_private.h
+2
-1
No files found.
dlls/wbemprox/builtin.c
View file @
0f8cbab1
This diff is collapsed.
Click to expand it.
dlls/wbemprox/class.c
View file @
0f8cbab1
...
@@ -781,7 +781,7 @@ static HRESULT create_signature_table( IEnumWbemClassObject *iter, WCHAR *name )
...
@@ -781,7 +781,7 @@ static HRESULT create_signature_table( IEnumWbemClassObject *iter, WCHAR *name )
hr
=
create_signature_columns_and_data
(
iter
,
&
num_cols
,
&
columns
,
&
row
);
hr
=
create_signature_columns_and_data
(
iter
,
&
num_cols
,
&
columns
,
&
row
);
if
(
hr
!=
S_OK
)
return
hr
;
if
(
hr
!=
S_OK
)
return
hr
;
if
(
!
(
table
=
create_table
(
name
,
num_cols
,
columns
,
1
,
row
,
NULL
)))
if
(
!
(
table
=
create_table
(
name
,
num_cols
,
columns
,
1
,
1
,
row
,
NULL
)))
{
{
free_columns
(
columns
,
num_cols
);
free_columns
(
columns
,
num_cols
);
heap_free
(
row
);
heap_free
(
row
);
...
...
dlls/wbemprox/table.c
View file @
0f8cbab1
...
@@ -290,6 +290,7 @@ void clear_table( struct table *table )
...
@@ -290,6 +290,7 @@ void clear_table( struct table *table )
if
(
table
->
fill
)
if
(
table
->
fill
)
{
{
table
->
num_rows
=
0
;
table
->
num_rows
=
0
;
table
->
num_rows_allocated
=
0
;
heap_free
(
table
->
data
);
heap_free
(
table
->
data
);
table
->
data
=
NULL
;
table
->
data
=
NULL
;
}
}
...
@@ -345,7 +346,7 @@ struct table *grab_table( const WCHAR *name )
...
@@ -345,7 +346,7 @@ struct table *grab_table( const WCHAR *name )
}
}
struct
table
*
create_table
(
const
WCHAR
*
name
,
UINT
num_cols
,
const
struct
column
*
columns
,
struct
table
*
create_table
(
const
WCHAR
*
name
,
UINT
num_cols
,
const
struct
column
*
columns
,
UINT
num_rows
,
BYTE
*
data
,
UINT
num_rows
,
UINT
num_allocated
,
BYTE
*
data
,
enum
fill_status
(
*
fill
)(
struct
table
*
,
const
struct
expr
*
cond
)
)
enum
fill_status
(
*
fill
)(
struct
table
*
,
const
struct
expr
*
cond
)
)
{
{
struct
table
*
table
;
struct
table
*
table
;
...
@@ -355,6 +356,7 @@ struct table *create_table( const WCHAR *name, UINT num_cols, const struct colum
...
@@ -355,6 +356,7 @@ struct table *create_table( const WCHAR *name, UINT num_cols, const struct colum
table
->
num_cols
=
num_cols
;
table
->
num_cols
=
num_cols
;
table
->
columns
=
columns
;
table
->
columns
=
columns
;
table
->
num_rows
=
num_rows
;
table
->
num_rows
=
num_rows
;
table
->
num_rows_allocated
=
num_allocated
;
table
->
data
=
data
;
table
->
data
=
data
;
table
->
fill
=
fill
;
table
->
fill
=
fill
;
table
->
flags
=
TABLE_FLAG_DYNAMIC
;
table
->
flags
=
TABLE_FLAG_DYNAMIC
;
...
...
dlls/wbemprox/wbemprox_private.h
View file @
0f8cbab1
...
@@ -108,6 +108,7 @@ struct table
...
@@ -108,6 +108,7 @@ struct table
UINT
num_cols
;
UINT
num_cols
;
const
struct
column
*
columns
;
const
struct
column
*
columns
;
UINT
num_rows
;
UINT
num_rows
;
UINT
num_rows_allocated
;
BYTE
*
data
;
BYTE
*
data
;
enum
fill_status
(
*
fill
)(
struct
table
*
,
const
struct
expr
*
cond
);
enum
fill_status
(
*
fill
)(
struct
table
*
,
const
struct
expr
*
cond
);
UINT
flags
;
UINT
flags
;
...
@@ -177,7 +178,7 @@ void init_table_list( void ) DECLSPEC_HIDDEN;
...
@@ -177,7 +178,7 @@ void init_table_list( void ) DECLSPEC_HIDDEN;
struct
table
*
grab_table
(
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
struct
table
*
grab_table
(
const
WCHAR
*
)
DECLSPEC_HIDDEN
;
struct
table
*
addref_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
struct
table
*
addref_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
void
release_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
void
release_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
struct
table
*
create_table
(
const
WCHAR
*
,
UINT
,
const
struct
column
*
,
UINT
,
BYTE
*
,
struct
table
*
create_table
(
const
WCHAR
*
,
UINT
,
const
struct
column
*
,
UINT
,
UINT
,
BYTE
*
,
enum
fill_status
(
*
)(
struct
table
*
,
const
struct
expr
*
)
)
DECLSPEC_HIDDEN
;
enum
fill_status
(
*
)(
struct
table
*
,
const
struct
expr
*
)
)
DECLSPEC_HIDDEN
;
BOOL
add_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
BOOL
add_table
(
struct
table
*
)
DECLSPEC_HIDDEN
;
void
free_columns
(
struct
column
*
,
UINT
)
DECLSPEC_HIDDEN
;
void
free_columns
(
struct
column
*
,
UINT
)
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