Changeset 18891 in vbox for trunk/src/VBox/Main
- Timestamp:
- Apr 14, 2009 2:35:04 PM (16 years ago)
- Location:
- trunk/src/VBox/Main/cbinding
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/cbinding/VBoxXPCOMCGlue.c
r18871 r18891 64 64 void *g_hVBoxXPCOMC = NULL; 65 65 /** The last load error. */ 66 char g_szVBoxErrMsg[256];67 /** Pointer to the VBoxXPCOMC function table. */68 66 PCVBOXXPCOM g_pVBoxFuncs = NULL; 69 67 /** Pointer to VBoxGetXPCOMCFunctions for the loaded VBoxXPCOMC so/dylib/dll. */ … … 92 90 if (cbBufNeeded > sizeof(szBuf)) 93 91 { 94 sprintf(g_szVBoxErrMsg, "path buffer too small: %u bytes needed", (unsigned)cbBufNeeded);95 92 return -1; 96 93 } … … 128 125 rc = 0; 129 126 } 130 else131 sprintf(g_szVBoxErrMsg, "%.80s: pfnGetFunctions(%#x) failed",132 szBuf, VBOX_XPCOMC_VERSION);133 127 } 134 else135 sprintf(g_szVBoxErrMsg, "dlsym(%.80s/%.32s): %128s",136 szBuf, VBOX_GET_XPCOMC_FUNCTIONS_SYMBOL_NAME, dlerror());137 128 if (rc != 0) 138 129 { … … 141 132 } 142 133 } 143 else144 sprintf(g_szVBoxErrMsg, "dlopen(%.80s): %128s", szBuf, dlerror());145 134 return rc; 146 135 } … … 212 201 g_pVBoxFuncs = NULL; 213 202 g_pfnGetFunctions = NULL; 214 memset(g_szVBoxErrMsg, 0, sizeof(g_szVBoxErrMsg));215 203 } 216 204 -
trunk/src/VBox/Main/cbinding/tstXPCOMCCall.c
r18829 r18891 589 589 if (VBoxCGlueInit() != 0) 590 590 { 591 fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed: %s\n", 592 argv[0], g_szVBoxErrMsg); 591 fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed.\n", argv[0]); 593 592 return EXIT_FAILURE; 594 593 } -
trunk/src/VBox/Main/cbinding/tstXPCOMCGlue.c
r18829 r18891 321 321 if (VBoxCGlueInit() != 0) 322 322 { 323 fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed: %s\n", 324 argv[0], g_szVBoxErrMsg); 323 fprintf(stderr, "%s: FATAL: VBoxCGlueInit failed.\n", argv[0]); 325 324 return EXIT_FAILURE; 326 325 }
Note:
See TracChangeset
for help on using the changeset viewer.