Changeset 30252 in vbox for trunk/src/VBox/Additions/WINNT/VBoxCredProv/dll.cpp
- Timestamp:
- Jun 16, 2010 1:48:29 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/WINNT/VBoxCredProv/dll.cpp
r29200 r30252 26 26 * Global Variables * 27 27 *******************************************************************************/ 28 static LONG g_cRef = 0; /* Global dll reference count*/29 HINSTANCE g_h inst = NULL; /* Global dll hinstance*/28 static LONG g_cRef = 0; /* Global DLL reference count. */ 29 HINSTANCE g_hDllInst = NULL; /* Global DLL hinstance. */ 30 30 31 31 … … 35 35 if (CLSID_VBoxCredProvider == rclsid) 36 36 { 37 CClassFactory* p cf= new CClassFactory;38 if (p cf)37 CClassFactory* pClassFactory = new CClassFactory; 38 if (pClassFactory) 39 39 { 40 hr = p cf->QueryInterface(riid, ppv);41 p cf->Release();40 hr = pClassFactory->QueryInterface(riid, ppv); 41 pClassFactory->Release(); 42 42 } 43 43 else … … 55 55 56 56 BOOL WINAPI DllMain(HINSTANCE hinstDll, 57 DWORD dwReason,58 LPVOID pReserved)57 DWORD dwReason, 58 LPVOID pReserved) 59 59 { 60 60 UNREFERENCED_PARAMETER(pReserved); … … 75 75 } 76 76 77 g_h inst = hinstDll;77 g_hDllInst = hinstDll; 78 78 return TRUE; 79 79 } … … 92 92 93 93 94 /* DLL entry point */ 94 LONG DllGetRefCount() 95 { 96 return g_cRef; 97 } 98 99 100 /* DLL entry point. */ 95 101 STDAPI DllCanUnloadNow() 96 102 {
Note:
See TracChangeset
for help on using the changeset viewer.