Commit 06b57327 authored by Hans Leidekker's avatar Hans Leidekker Committed by Alexandre Julliard

wbemprox: Add stub implementations of IEnumWbemClassObject and IWbemClassObject.

parent de2ee1b3
...@@ -2,6 +2,7 @@ MODULE = wbemprox.dll ...@@ -2,6 +2,7 @@ MODULE = wbemprox.dll
IMPORTS = ole32 advapi32 IMPORTS = ole32 advapi32
C_SRCS = \ C_SRCS = \
class.c \
main.c \ main.c \
services.c \ services.c \
wbemlocator.c wbemlocator.c
......
...@@ -58,7 +58,7 @@ static ULONG WINAPI wbem_locator_Release( ...@@ -58,7 +58,7 @@ static ULONG WINAPI wbem_locator_Release(
if (!refs) if (!refs)
{ {
TRACE("destroying %p\n", wl); TRACE("destroying %p\n", wl);
HeapFree( GetProcessHeap(), 0, wl ); heap_free( wl );
} }
return refs; return refs;
} }
...@@ -129,7 +129,7 @@ HRESULT WbemLocator_create( IUnknown *pUnkOuter, LPVOID *ppObj ) ...@@ -129,7 +129,7 @@ HRESULT WbemLocator_create( IUnknown *pUnkOuter, LPVOID *ppObj )
TRACE("(%p,%p)\n", pUnkOuter, ppObj); TRACE("(%p,%p)\n", pUnkOuter, ppObj);
wl = HeapAlloc( GetProcessHeap(), 0, sizeof(*wl) ); wl = heap_alloc( sizeof(*wl) );
if (!wl) return E_OUTOFMEMORY; if (!wl) return E_OUTOFMEMORY;
wl->IWbemLocator_iface.lpVtbl = &wbem_locator_vtbl; wl->IWbemLocator_iface.lpVtbl = &wbem_locator_vtbl;
......
...@@ -18,3 +18,14 @@ ...@@ -18,3 +18,14 @@
HRESULT WbemLocator_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN; HRESULT WbemLocator_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
HRESULT WbemServices_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN; HRESULT WbemServices_create(IUnknown *, LPVOID *) DECLSPEC_HIDDEN;
static void *heap_alloc( size_t len ) __WINE_ALLOC_SIZE(1);
static inline void *heap_alloc( size_t len )
{
return HeapAlloc( GetProcessHeap(), 0, len );
}
static inline BOOL heap_free( void *mem )
{
return HeapFree( GetProcessHeap(), 0, mem );
}
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