[PSTOREC]

* Sync to Wine 1.3.37.

svn path=/trunk/; revision=55297
This commit is contained in:
Amine Khaldi 2012-01-29 22:24:35 +00:00
parent 2d57ba7294
commit 15fb0aecc1
4 changed files with 33 additions and 6 deletions

View file

@ -33,10 +33,15 @@ WINE_DEFAULT_DEBUG_CHANNEL(pstores);
typedef struct
{
const IPStoreVtbl *lpVtbl;
IPStore IPStore_iface;
LONG ref;
} PStore_impl;
static inline PStore_impl *impl_from_IPStore(IPStore *iface)
{
return CONTAINING_RECORD(iface, PStore_impl, IPStore_iface);
}
BOOL WINAPI DllMain(HINSTANCE hinst, DWORD fdwReason, LPVOID fImpLoad)
{
TRACE("%p %x %p\n", hinst, fdwReason, fImpLoad);
@ -62,7 +67,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
REFIID riid,
LPVOID *ppvObj)
{
PStore_impl *This = (PStore_impl *)iface;
PStore_impl *This = impl_from_IPStore(iface);
TRACE("%p %s\n",This,debugstr_guid(riid));
@ -87,7 +92,7 @@ static HRESULT WINAPI PStore_fnQueryInterface(
*/
static ULONG WINAPI PStore_fnAddRef(IPStore* iface)
{
PStore_impl *This = (PStore_impl *)iface;
PStore_impl *This = impl_from_IPStore(iface);
TRACE("%p %u\n", This, This->ref);
@ -99,7 +104,7 @@ static ULONG WINAPI PStore_fnAddRef(IPStore* iface)
*/
static ULONG WINAPI PStore_fnRelease(IPStore* iface)
{
PStore_impl *This = (PStore_impl *)iface;
PStore_impl *This = impl_from_IPStore(iface);
LONG ref;
TRACE("%p %u\n", This, This->ref);
@ -359,7 +364,7 @@ HRESULT WINAPI PStoreCreateInstance( IPStore** ppProvider,
if( !ips )
return E_OUTOFMEMORY;
ips->lpVtbl = &pstores_vtbl;
ips->IPStore_iface.lpVtbl = &pstores_vtbl;
ips->ref = 1;
*ppProvider = (IPStore*) ips;

View file

@ -0,0 +1,20 @@
HKCR
{
NoRemove Typelib
{
NoRemove '{5A6F1EBD-2DB1-11D0-8C39-00C04FD9126B}'
{
'1.0' = s 'PStore 1.0 Type Library'
{
'0' { win32 = s '%MODULE%' }
FLAGS = s '0'
}
}
}
NoRemove Interface
{
}
NoRemove CLSID
{
}
}

View file

@ -27,3 +27,5 @@ LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* @makedep: pstorec_tlb.tlb */
1 TYPELIB pstorec_tlb.tlb
2 WINE_REGISTRY pstorec.rgs

View file

@ -134,7 +134,7 @@ reactos/dll/win32/pdh # Autosync
reactos/dll/win32/pidgen # Autosync
reactos/dll/win32/powrprof # Forked at Wine-1.0rc5
reactos/dll/win32/printui # Synced to Wine-1.3.37
reactos/dll/win32/pstorec # Autosync
reactos/dll/win32/pstorec # Synced to Wine-1.3.37
reactos/dll/win32/query # Autosync
reactos/dll/win32/rasapi32 # Autosync
reactos/dll/win32/resutils # Autosync