Changeset 78408 in vbox for trunk/src/VBox/GuestHost/OpenGL/util
- Timestamp:
- May 6, 2019 9:31:01 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/GuestHost/OpenGL/util/error.c
r78190 r78408 31 31 #ifdef RT_OS_WINDOWS 32 32 # include <iprt/win/windows.h> 33 # include "cr_error.h"34 # include "VBox/VBoxGuestLib.h"35 # include "iprt/initterm.h"36 #else37 # include "cr_error.h"38 33 #endif 34 #include "cr_error.h" 39 35 40 36 #include <signal.h> … … 179 175 } 180 176 } 181 182 #if defined(RT_OS_WINDOWS)183 BOOL WINAPI DllMain(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved)184 {185 (void) lpvReserved; (void) hDLLInst;186 187 switch (fdwReason)188 {189 case DLL_PROCESS_ATTACH:190 {191 int rc;192 rc = RTR3InitDll(RTR3INIT_FLAGS_UNOBTRUSIVE); CRASSERT(rc==0);193 # ifdef IN_GUEST194 rc = VbglR3Init();195 # endif196 LogRel(("crUtil DLL loaded.\n"));197 # if defined(DEBUG_misha)198 char aName[MAX_PATH];199 GetModuleFileNameA(hDLLInst, aName, RT_ELEMENTS(aName));200 crDbgCmdSymLoadPrint(aName, hDLLInst);201 # endif202 break;203 }204 205 case DLL_PROCESS_DETACH:206 {207 LogRel(("crUtil DLL unloaded."));208 # ifdef IN_GUEST209 VbglR3Term();210 # endif211 }212 213 default:214 break;215 }216 217 return TRUE;218 }219 #endif220
Note:
See TracChangeset
for help on using the changeset viewer.