Commit c0a6f0f7 authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

msi: Use CONTAINING_RECORD() to get from a field to a struct.

parent 57291c4b
......@@ -1031,7 +1031,7 @@ static HRESULT list_invoke(
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
ListObject *list = (ListObject*)This;
ListObject *list = CONTAINING_RECORD(This, ListObject, autoobj);
IUnknown *pUnk = NULL;
HRESULT hr;
......@@ -1079,7 +1079,7 @@ static HRESULT list_invoke(
static void list_free(AutomationObject *This)
{
ListObject *list = (ListObject*)This;
ListObject *list = CONTAINING_RECORD(This, ListObject, autoobj);
int i;
for (i = 0; i < list->count; i++)
......@@ -1367,7 +1367,7 @@ static HRESULT session_invoke(
EXCEPINFO* pExcepInfo,
UINT* puArgErr)
{
SessionObject *session = (SessionObject*)This;
SessionObject *session = CONTAINING_RECORD(This, SessionObject, autoobj);
WCHAR *szString;
DWORD dwLen = 0;
MSIHANDLE msiHandle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment