- Timestamp:
- Mar 21, 2019 1:17:25 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/nt/RTNtPathExpand8dot3PathA.cpp
r77816 r77818 56 56 * This is all zeros and NULL on failure. 57 57 */ 58 RTDECL(int) RTNtPathExpand8dot3PathA(PCUNICODE_STRING p Short, bool fPathOnly, PUNICODE_STRING pUniStrDst)58 RTDECL(int) RTNtPathExpand8dot3PathA(PCUNICODE_STRING pUniStrSrc, bool fPathOnly, PUNICODE_STRING pUniStrDst) 59 59 { 60 60 /* Guess a reasonable size for the final version. */ 61 size_t const cbShort = p Short->Length;61 size_t const cbShort = pUniStrSrc->Length; 62 62 size_t cbLong = RT_MIN(_64K - 1, cbShort * 8); 63 63 if (cbLong < RTPATH_MAX) … … 71 71 pUniStrDst->MaximumLength = (uint16_t)cbLong; 72 72 pUniStrDst->Length = (uint16_t)cbShort; 73 memcpy(pUniStrDst->Buffer, p Short->Buffer, cbShort);73 memcpy(pUniStrDst->Buffer, pUniStrSrc->Buffer, cbShort); 74 74 pUniStrDst->Buffer[cbShort / sizeof(WCHAR)] = '\0'; 75 75 int rc = RTNtPathExpand8dot3Path(pUniStrDst, fPathOnly);
Note:
See TracChangeset
for help on using the changeset viewer.