Lines Matching defs:pShflString
450 PSHFLSTRING pShflString;
455 pShflString = (PSHFLSTRING)vbsfAllocNonPagedMem(ulShflStringSize);
456 if (pShflString)
458 if (ShflStringInitBuffer(pShflString, ulShflStringSize))
462 RtlCopyMemory(pShflString->String.ucs2, pwc, cb);
463 pShflString->String.ucs2[cb / sizeof(WCHAR)] = 0;
464 pShflString->u16Length = cb; /* without terminating null */
465 AssertMsg(pShflString->u16Length + sizeof(WCHAR) == pShflString->u16Size,
466 ("u16Length %d, u16Size %d\n", pShflString->u16Length, pShflString->u16Size));
470 RtlZeroMemory(pShflString->String.ucs2, cb + sizeof(WCHAR));
471 pShflString->u16Length = 0; /* without terminating null */
472 AssertMsg(pShflString->u16Size >= sizeof(WCHAR),
473 ("u16Size %d\n", pShflString->u16Size));
476 *ppShflString = pShflString;
480 vbsfFreeNonPagedMem(pShflString);