atl: Declare some items static
Andrew Talbot
Andrew.Talbot at talbotville.com
Tue Jan 2 09:58:07 CST 2007
Note: registry.c doesn't actually use the global hInst variable.
-- Andy.
---
Changelog:
atl: Declare some items static.
diff -urN a/dlls/atl/atl_main.c b/dlls/atl/atl_main.c
--- a/dlls/atl/atl_main.c 2006-11-13 17:34:33.000000000 +0000
+++ b/dlls/atl/atl_main.c 2007-01-02 15:44:26.000000000 +0000
@@ -40,7 +40,7 @@
WINE_DEFAULT_DEBUG_CHANNEL(atl);
-HINSTANCE hInst;
+static HINSTANCE hInst;
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
@@ -97,8 +97,8 @@
return S_OK;
}
-HRESULT WINAPI AtlModuleLoadTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex,
- BSTR *pbstrPath, ITypeLib **ppTypeLib)
+static HRESULT WINAPI AtlModuleLoadTypeLib(_ATL_MODULEW *pM, LPCOLESTR lpszIndex,
+ BSTR *pbstrPath, ITypeLib **ppTypeLib)
{
HRESULT hRes;
OLECHAR path[MAX_PATH+8]; /* leave some space for index */
diff -urN a/dlls/atl/registrar.c b/dlls/atl/registrar.c
--- a/dlls/atl/registrar.c 2006-12-15 17:25:54.000000000 +0000
+++ b/dlls/atl/registrar.c 2007-01-02 15:38:11.000000000 +0000
@@ -754,8 +754,6 @@
return CLASS_E_CLASSNOTAVAILABLE;
}
-extern HINSTANCE hInst;
-
static HRESULT do_register_dll_server(LPCOLESTR wszDll, LPCOLESTR wszId, BOOL do_register)
{
WCHAR buf[MAX_PATH];
More information about the wine-patches
mailing list