Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
37b1048b
Commit
37b1048b
authored
Apr 17, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
May 22, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: Fix handling of arrays as query results.
parent
856b0350
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
7 deletions
+22
-7
builtin.c
dlls/wbemprox/builtin.c
+16
-6
table.c
dlls/wbemprox/table.c
+6
-1
No files found.
dlls/wbemprox/builtin.c
View file @
37b1048b
...
...
@@ -938,7 +938,7 @@ struct record_service
struct
record_sid
{
const
WCHAR
*
accountname
;
const
UINT8
*
binaryrepresentation
;
const
struct
array
*
binaryrepresentation
;
const
WCHAR
*
referenceddomainname
;
const
WCHAR
*
sid
;
UINT32
sidlength
;
...
...
@@ -2614,12 +2614,22 @@ static WCHAR *get_accountname( LSA_TRANSLATED_NAME *name )
if
(
!
name
||
!
name
->
Name
.
Buffer
)
return
NULL
;
return
heap_strdupW
(
name
->
Name
.
Buffer
);
}
static
UINT8
*
get_binaryrepresentation
(
PSID
sid
,
UINT
len
)
static
struct
array
*
get_binaryrepresentation
(
PSID
sid
,
UINT
len
)
{
UINT8
*
ret
=
heap_alloc
(
len
);
if
(
!
ret
)
return
NULL
;
memcpy
(
ret
,
sid
,
len
);
return
ret
;
struct
array
*
array
=
heap_alloc
(
sizeof
(
struct
array
)
);
if
(
array
)
{
UINT8
*
ret
=
heap_alloc
(
len
);
if
(
ret
)
{
memcpy
(
ret
,
sid
,
len
);
array
->
count
=
len
;
array
->
ptr
=
ret
;
return
array
;
}
heap_free
(
array
);
}
return
NULL
;
}
static
WCHAR
*
get_referenceddomainname
(
LSA_REFERENCED_DOMAIN_LIST
*
domain
)
{
...
...
dlls/wbemprox/table.c
View file @
37b1048b
...
...
@@ -288,10 +288,15 @@ void free_row_values( const struct table *table, UINT row )
if
(
!
(
table
->
columns
[
i
].
type
&
COL_FLAG_DYNAMIC
))
continue
;
type
=
table
->
columns
[
i
].
type
&
COL_TYPE_MASK
;
if
(
type
==
CIM_STRING
||
type
==
CIM_DATETIME
||
(
type
&
CIM_FLAG_ARRAY
)
)
if
(
type
==
CIM_STRING
||
type
==
CIM_DATETIME
)
{
if
(
get_value
(
table
,
row
,
i
,
&
val
)
==
S_OK
)
heap_free
(
(
void
*
)(
INT_PTR
)
val
);
}
else
if
(
type
&
CIM_FLAG_ARRAY
)
{
if
(
get_value
(
table
,
row
,
i
,
&
val
)
==
S_OK
)
destroy_array
(
(
void
*
)(
INT_PTR
)
val
,
type
&
CIM_TYPE_MASK
);
}
}
}
...
...
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