Commit f8c8355d authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

ole32: Implementation of state bits for IStorage.

parent c2fdea60
...@@ -753,6 +753,7 @@ static HRESULT WINAPI StorageBaseImpl_Stat( ...@@ -753,6 +753,7 @@ static HRESULT WINAPI StorageBaseImpl_Stat(
grfStatFlag); grfStatFlag);
pstatstg->grfMode = This->openFlags; pstatstg->grfMode = This->openFlags;
pstatstg->grfStateBits = This->stateBits;
res = S_OK; res = S_OK;
goto end; goto end;
...@@ -2352,8 +2353,9 @@ static HRESULT WINAPI StorageImpl_SetStateBits( ...@@ -2352,8 +2353,9 @@ static HRESULT WINAPI StorageImpl_SetStateBits(
DWORD grfStateBits,/* [in] */ DWORD grfStateBits,/* [in] */
DWORD grfMask) /* [in] */ DWORD grfMask) /* [in] */
{ {
FIXME("not implemented!\n"); StorageImpl* const This = (StorageImpl*)iface;
return E_NOTIMPL; This->base.stateBits = (This->base.stateBits & ~grfMask) | (grfStateBits & grfMask);
return S_OK;
} }
/* /*
......
...@@ -245,6 +245,11 @@ struct StorageBaseImpl ...@@ -245,6 +245,11 @@ struct StorageBaseImpl
* flags that this storage was opened or created with * flags that this storage was opened or created with
*/ */
DWORD openFlags; DWORD openFlags;
/*
* State bits appear to only be preserved while running. No in the stream
*/
DWORD stateBits;
}; };
/**************************************************************************** /****************************************************************************
......
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