Changeset 52940 in vbox for trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp
- Timestamp:
- Oct 3, 2014 6:40:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/Support/win/SUPHardenedVerifyProcess-win.cpp
r52875 r52940 1606 1606 pEntry->pszName, cbBits, cbBits); 1607 1607 1608 pEntry->pbBits = (uint8_t *) suplibHardenedAllocZ(cbBits);1608 pEntry->pbBits = (uint8_t *)RTMemAllocZ(cbBits); 1609 1609 if (!pEntry->pbBits) 1610 1610 return supHardNtVpSetInfo1(pErrInfo, VERR_SUP_VP_NO_MEMORY, "Failed to allocate %zu bytes for image %s.", … … 1629 1629 if (pEntry->pbBits) 1630 1630 { 1631 suplibHardenedFree(pEntry->pbBits);1631 RTMemFree(pEntry->pbBits); 1632 1632 pEntry->pbBits = NULL; 1633 1633 } … … 1926 1926 int rc; 1927 1927 ULONG cbUniStr = sizeof(UNICODE_STRING) + RTPATH_MAX * sizeof(RTUTF16); 1928 PUNICODE_STRING pUniStr = (PUNICODE_STRING) suplibHardenedAllocZ(cbUniStr);1928 PUNICODE_STRING pUniStr = (PUNICODE_STRING)RTMemAllocZ(cbUniStr); 1929 1929 if (!pUniStr) 1930 1930 return supHardNtVpSetInfo2(pThis, VERR_SUP_VP_NO_MEMORY, … … 1947 1947 rc = supHardNtVpSetInfo2(pThis, VERR_SUP_VP_NT_QI_PROCESS_NM_ERROR, 1948 1948 "NtQueryInformationProcess/ProcessImageFileName failed: %#x", rcNt); 1949 suplibHardenedFree(pUniStr);1949 RTMemFree(pUniStr); 1950 1950 if (RT_FAILURE(rc)) 1951 1951 return rc; … … 2108 2108 * Allocate and initialize memory for the state. 2109 2109 */ 2110 PSUPHNTVPSTATE pThis = (PSUPHNTVPSTATE) suplibHardenedAllocZ(sizeof(*pThis));2110 PSUPHNTVPSTATE pThis = (PSUPHNTVPSTATE)RTMemAllocZ(sizeof(*pThis)); 2111 2111 if (pThis) 2112 2112 { … … 2137 2137 supHardNTLdrCacheDeleteEntry(&pThis->aImages[i].CacheEntry); 2138 2138 #endif 2139 suplibHardenedFree(pThis);2139 RTMemFree(pThis); 2140 2140 } 2141 2141 else
Note:
See TracChangeset
for help on using the changeset viewer.