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
ced0a775
Commit
ced0a775
authored
Apr 30, 2007
by
Misha Koshelev
Committed by
Alexandre Julliard
May 01, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
msi: automation: Implement Record::StringData.
parent
f807f2d4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
65 additions
and
0 deletions
+65
-0
automation.c
dlls/msi/automation.c
+65
-0
No files found.
dlls/msi/automation.c
View file @
ced0a775
...
@@ -470,3 +470,68 @@ static const IProvideMultipleClassInfoVtbl AutomationObject_IProvideMultipleClas
...
@@ -470,3 +470,68 @@ static const IProvideMultipleClassInfoVtbl AutomationObject_IProvideMultipleClas
AutomationObject_GetMultiTypeInfoCount
,
AutomationObject_GetMultiTypeInfoCount
,
AutomationObject_GetInfoOfIndex
AutomationObject_GetInfoOfIndex
};
};
/*
* Individual Object Invocation Functions
*/
static
HRESULT
WINAPI
RecordImpl_Invoke
(
AutomationObject
*
This
,
DISPID
dispIdMember
,
REFIID
riid
,
LCID
lcid
,
WORD
wFlags
,
DISPPARAMS
*
pDispParams
,
VARIANT
*
pVarResult
,
EXCEPINFO
*
pExcepInfo
,
UINT
*
puArgErr
)
{
WCHAR
*
szString
;
DWORD
dwLen
;
UINT
ret
;
VARIANTARG
varg0
,
varg1
;
HRESULT
hr
;
VariantInit
(
&
varg0
);
VariantInit
(
&
varg1
);
switch
(
dispIdMember
)
{
case
DISPID_RECORD_STRINGDATA
:
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
)
{
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
(
ret
!=
ERROR_SUCCESS
)
ERR
(
"MsiRecordGetString returned %d
\n
"
,
ret
);
}
else
if
(
wFlags
&
DISPATCH_PROPERTYPUT
)
{
hr
=
DispGetParam
(
pDispParams
,
0
,
VT_I4
,
&
varg0
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
hr
=
DispGetParam
(
pDispParams
,
DISPID_PROPERTYPUT
,
VT_BSTR
,
&
varg1
,
puArgErr
);
if
(
FAILED
(
hr
))
return
hr
;
if
((
ret
=
MsiRecordSetStringW
(
This
->
msiHandle
,
V_I4
(
&
varg0
),
V_BSTR
(
&
varg1
)))
!=
ERROR_SUCCESS
)
{
ERR
(
"MsiRecordSetString returned %d
\n
"
,
ret
);
return
DISP_E_EXCEPTION
;
}
}
break
;
default:
return
DISP_E_MEMBERNOTFOUND
;
}
return
S_OK
;
}
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