Changeset 35152 in vbox for trunk/src/VBox/HostDrivers/Support
- Timestamp:
- Dec 15, 2010 4:45:42 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/SUPLib.cpp
r34972 r35152 2083 2083 * @param pszFilename The full file name. 2084 2084 * @param phLdrMod Where to store the handle to the loaded module. 2085 * @param fFlags See RTLDFLAGS_. 2085 2086 * @param pszError Where to return the loader error. Optional. 2086 2087 * @param cbError The size of the buffer pointed to by @a pszError. 2087 2088 */ 2088 static int supR3HardenedLdrLoadIt(const char *pszFilename, PRTLDRMOD phLdrMod, char *pszError, size_t cbError)2089 static int supR3HardenedLdrLoadIt(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError) 2089 2090 { 2090 2091 #ifdef VBOX_WITH_HARDENING … … 2103 2104 * Try load it. 2104 2105 */ 2105 return RTLdrLoadEx(pszFilename, phLdrMod, pszError, cbError);2106 } 2107 2108 2109 SUPR3DECL(int) SUPR3HardenedLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod, char *pszError, size_t cbError)2106 return RTLdrLoadEx(pszFilename, phLdrMod, fFlags, pszError, cbError); 2107 } 2108 2109 2110 SUPR3DECL(int) SUPR3HardenedLdrLoad(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError) 2110 2111 { 2111 2112 /* … … 2145 2146 * Pass it on to the common library loader. 2146 2147 */ 2147 return supR3HardenedLdrLoadIt(pszFilename, phLdrMod, pszError, cbError);2148 } 2149 2150 2151 SUPR3DECL(int) SUPR3HardenedLdrLoadAppPriv(const char *pszFilename, PRTLDRMOD phLdrMod, char *pszError, size_t cbError)2152 { 2153 LogFlow(("SUPR3HardenedLdrLoadAppPriv: pszFilename=%p:{%s} phLdrMod=%p pszError=%p cbError=%zu\n", pszFilename, pszFilename, phLdrMod, pszError, cbError));2148 return supR3HardenedLdrLoadIt(pszFilename, phLdrMod, fFlags, pszError, cbError); 2149 } 2150 2151 2152 SUPR3DECL(int) SUPR3HardenedLdrLoadAppPriv(const char *pszFilename, PRTLDRMOD phLdrMod, uint32_t fFlags, char *pszError, size_t cbError) 2153 { 2154 LogFlow(("SUPR3HardenedLdrLoadAppPriv: pszFilename=%p:{%s} phLdrMod=%p fFlags=%08x pszError=%p cbError=%zu\n", pszFilename, pszFilename, phLdrMod, fFlags, pszError, cbError)); 2154 2155 2155 2156 /* … … 2207 2208 * Pass it on to SUPR3HardenedLdrLoad. 2208 2209 */ 2209 rc = SUPR3HardenedLdrLoad(szPath, phLdrMod, pszError, cbError);2210 rc = SUPR3HardenedLdrLoad(szPath, phLdrMod, fFlags, pszError, cbError); 2210 2211 2211 2212 LogFlow(("SUPR3HardenedLdrLoadAppPriv: returns %Rrc\n", rc)); … … 2244 2245 * Try load it. 2245 2246 */ 2246 return RTLdrLoadEx(pszFilename, phLdrMod, pszErr, cbErr);2247 return RTLdrLoadEx(pszFilename, phLdrMod, 0 /*=fFlags*/, pszErr, cbErr); 2247 2248 } 2248 2249
Note:
See TracChangeset
for help on using the changeset viewer.