Lines Matching refs:reqLen
2701 int len , reqLen; in SHUnicodeToAnsiCP() local
2746 reqLen = SHTruncateString(mem, dstlen); in SHUnicodeToAnsiCP()
2747 if (reqLen > 0) memcpy(lpDstStr, mem, reqLen-1); in SHUnicodeToAnsiCP()
2757 reqLen = WideCharToMultiByte(CodePage, 0, lpSrcStr, len, lpDstStr, dstlen, NULL, NULL); in SHUnicodeToAnsiCP()
2759 if (!reqLen && GetLastError() == ERROR_INSUFFICIENT_BUFFER) in SHUnicodeToAnsiCP()
2761 reqLen = WideCharToMultiByte(CodePage, 0, lpSrcStr, len, NULL, 0, NULL, NULL); in SHUnicodeToAnsiCP()
2762 if (reqLen) in SHUnicodeToAnsiCP()
2764 mem = HeapAlloc(GetProcessHeap(), 0, reqLen); in SHUnicodeToAnsiCP()
2767 WideCharToMultiByte(CodePage, 0, lpSrcStr, len, mem, reqLen, NULL, NULL); in SHUnicodeToAnsiCP()
2769 reqLen = SHTruncateString(mem, dstlen -1); in SHUnicodeToAnsiCP()
2770 reqLen++; in SHUnicodeToAnsiCP()
2772 lstrcpynA(lpDstStr, mem, reqLen); in SHUnicodeToAnsiCP()
2774 lpDstStr[reqLen-1] = '\0'; in SHUnicodeToAnsiCP()
2778 return reqLen; in SHUnicodeToAnsiCP()