Jacek Caban : atl100: Added AtlGetPerUserRegistration stub implementation.
Alexandre Julliard
julliard at winehq.org
Fri Jan 25 13:31:49 CST 2013
Module: wine
Branch: master
Commit: 0333b758b2a16ed7091da6c51f0e3ad41ee1aa99
URL: http://source.winehq.org/git/wine.git/?a=commit;h=0333b758b2a16ed7091da6c51f0e3ad41ee1aa99
Author: Jacek Caban <jacek at codeweavers.com>
Date: Fri Jan 25 13:12:02 2013 +0100
atl100: Added AtlGetPerUserRegistration stub implementation.
---
dlls/atl100/atl.c | 12 ++++++++++++
dlls/atl100/atl100.spec | 2 +-
dlls/atl100/tests/atl.c | 6 ++++++
include/atlbase.h | 1 +
4 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/dlls/atl100/atl.c b/dlls/atl100/atl.c
index c4867aa..ce35b38 100644
--- a/dlls/atl100/atl.c
+++ b/dlls/atl100/atl.c
@@ -26,6 +26,8 @@
WINE_DEFAULT_DEBUG_CHANNEL(atl100);
+typedef unsigned char cpp_bool;
+
static inline void *heap_alloc(size_t len)
{
return HeapAlloc(GetProcessHeap(), 0, len);
@@ -709,6 +711,16 @@ HRESULT WINAPI AtlGetObjectSourceInterface(IUnknown *unk, GUID *libid, IID *iid,
}
/***********************************************************************
+ * AtlGetPerUserRegistration [atl100.68]
+ */
+HRESULT WINAPI AtlGetPerUserRegistration(cpp_bool *pbEnabled)
+{
+ FIXME("stub: returning false\n");
+ *pbEnabled = 0;
+ return S_OK;
+}
+
+/***********************************************************************
* AtlGetVersion [atl100.@]
*/
DWORD WINAPI AtlGetVersion(void *pReserved)
diff --git a/dlls/atl100/atl100.spec b/dlls/atl100/atl100.spec
index 1732052..c959a29 100644
--- a/dlls/atl100/atl100.spec
+++ b/dlls/atl100/atl100.spec
@@ -49,4 +49,4 @@
65 stdcall AtlWinModuleInit(ptr)
66 stub AtlWinModuleTerm
67 stub AtlSetPerUserRegistration
-68 stub AtlGetPerUserRegistration
+68 stdcall AtlGetPerUserRegistration(ptr)
diff --git a/dlls/atl100/tests/atl.c b/dlls/atl100/tests/atl.c
index 8aea90a..e7c3703 100644
--- a/dlls/atl100/tests/atl.c
+++ b/dlls/atl100/tests/atl.c
@@ -150,6 +150,7 @@ static void _test_key_not_exists(unsigned line, HKEY root, const char *key_name)
static void test_regcat(void)
{
+ unsigned char b;
HRESULT hres;
const struct _ATL_CATMAP_ENTRY catmap[] = {
@@ -178,6 +179,11 @@ static void test_regcat(void)
ok(hres == S_OK, "AtlRegisterClassCategoriesHelper failed: %08x\n", hres);
test_key_not_exists(HKEY_CLASSES_ROOT, "CLSID\\{" CLSID_TEST_STR "}");
+
+ b = 10;
+ hres = AtlGetPerUserRegistration(&b);
+ ok(hres == S_OK, "AtlGetPerUserRegistration failed: %08x\n", hres);
+ ok(!b, "AtlGetPerUserRegistration returned %x\n", b);
}
static void test_typelib(void)
diff --git a/include/atlbase.h b/include/atlbase.h
index 8bacb97..7d18d81 100644
--- a/include/atlbase.h
+++ b/include/atlbase.h
@@ -258,5 +258,6 @@ HRESULT WINAPI AtlComModuleGetClassObject(_ATL_COM_MODULE*,REFCLSID,REFIID,void*
HRESULT WINAPI AtlComModuleUnregisterServer(_ATL_COM_MODULE*,BOOL,const CLSID*);
BOOL WINAPI AtlWaitWithMessageLoop(HANDLE);
HRESULT WINAPI AtlGetObjectSourceInterface(IUnknown*,GUID*,IID*,unsigned short*,unsigned short*);
+HRESULT WINAPI AtlGetPerUserRegistration(unsigned char /*bool*/ *);
#endif /* __WINE_ATLBASE_H__ */
More information about the wine-cvs
mailing list