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
187f856e
Commit
187f856e
authored
May 15, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 16, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Condense a few loops.
parent
fef82e74
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
22 deletions
+16
-22
automation.c
dlls/msi/automation.c
+16
-22
No files found.
dlls/msi/automation.c
View file @
187f856e
...
...
@@ -575,24 +575,21 @@ static HRESULT WINAPI RecordImpl_Invoke(
break
;
case
DISPID_RECORD_STRINGDATA
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_I4
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
V_VT
(
pVarResult
)
=
VT_BSTR
;
V_BSTR
(
pVarResult
)
=
NULL
;
ret
=
MsiRecordGetStringW
(
This
->
msiHandle
,
V_I4
(
&
varg0
),
NULL
,
&
dwLen
);
if
(
ret
==
ERROR_SUCCESS
)
if
((
ret
=
MsiRecordGetStringW
(
This
->
msiHandle
,
V_I4
(
&
varg0
),
NULL
,
&
dwLen
))
==
ERROR_SUCCESS
)
{
szString
=
msi_alloc
((
++
dwLen
)
*
sizeof
(
WCHAR
));
if
(
szString
)
{
if
((
ret
=
MsiRecordGetStringW
(
This
->
msiHandle
,
V_I4
(
&
varg0
),
szString
,
&
dwLen
))
==
ERROR_SUCCESS
)
V_BSTR
(
pVarResult
)
=
SysAllocString
(
szString
);
msi_free
(
szString
);
}
if
(
!
(
szString
=
msi_alloc
((
++
dwLen
)
*
sizeof
(
WCHAR
))))
ERR
(
"Out of memory
\n
"
);
else
if
((
ret
=
MsiRecordGetStringW
(
This
->
msiHandle
,
V_I4
(
&
varg0
),
szString
,
&
dwLen
))
==
ERROR_SUCCESS
)
V_BSTR
(
pVarResult
)
=
SysAllocString
(
szString
);
msi_free
(
szString
);
}
if
(
ret
!=
ERROR_SUCCESS
)
ERR
(
"MsiRecordGetString returned %d
\n
"
,
ret
);
ERR
(
"MsiRecordGetString returned %d
\n
"
,
ret
);
}
else
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_I4
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -886,24 +883,21 @@ static HRESULT WINAPI SessionImpl_Invoke(
break
;
case
DISPID_SESSION_PROPERTY
:
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
if
(
wFlags
&
DISPATCH_PROPERTYGET
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
V_VT
(
pVarResult
)
=
VT_BSTR
;
V_BSTR
(
pVarResult
)
=
NULL
;
ret
=
MsiGetPropertyW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
),
NULL
,
&
dwLen
);
if
(
ret
==
ERROR_SUCCESS
)
if
((
ret
=
MsiGetPropertyW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
),
NULL
,
&
dwLen
))
==
ERROR_SUCCESS
)
{
szString
=
msi_alloc
((
++
dwLen
)
*
sizeof
(
WCHAR
));
if
(
szString
)
{
if
((
ret
=
MsiGetPropertyW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
),
szString
,
&
dwLen
))
==
ERROR_SUCCESS
)
V_BSTR
(
pVarResult
)
=
SysAllocString
(
szString
);
msi_free
(
szString
);
}
if
(
!
(
szString
=
msi_alloc
((
++
dwLen
)
*
sizeof
(
WCHAR
))))
ERR
(
"Out of memory
\n
"
);
else
if
((
ret
=
MsiGetPropertyW
(
This
->
msiHandle
,
V_BSTR
(
&
varg0
),
szString
,
&
dwLen
))
==
ERROR_SUCCESS
)
V_BSTR
(
pVarResult
)
=
SysAllocString
(
szString
);
msi_free
(
szString
);
}
if
(
ret
!=
ERROR_SUCCESS
)
ERR
(
"MsiGetProperty returned %d
\n
"
,
ret
);
ERR
(
"MsiGetProperty returned %d
\n
"
,
ret
);
}
else
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_BSTR
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
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