Lines Matching defs:pwBuf
29 wchar_t* pwBuf = new(std::nothrow) wchar_t[nwLen + 1];
30 if (!pwBuf) {
31 ELOG("Memory allocation failed : pwBuf.");
34 ZeroMemory(pwBuf, (nwLen + 1) * doubles);
35 ::MultiByteToWideChar(CP_ACP, 0, str.c_str(), str.length(), pwBuf, nwLen);
36 int nLen = ::WideCharToMultiByte(CP_UTF8, 0, pwBuf, -1, NULL, NULL, NULL, NULL);
38 delete[] pwBuf;
48 ::WideCharToMultiByte(CP_UTF8, 0, pwBuf, nwLen, pBuf, nLen, NULL, NULL);
50 delete[] pwBuf;
52 pwBuf = NULL;
65 wchar_t* pwBuf = new(std::nothrow) wchar_t[wLenAdd];
66 if (!pwBuf) {
67 ELOG("Memory allocation failed : pwBuf.");
71 if (EOK != memset_s(pwBuf, sizeof(*pwBuf) * doubles, 0, doubleLen)) {
72 delete []pwBuf;
73 ELOG("pwBuf memset_s failed.");
76 MultiByteToWideChar(CP_UTF8, 0, str.c_str(), str.length(), pwBuf, nwLen);
77 int nLen = WideCharToMultiByte(CP_ACP, 0, pwBuf, -1, NULL, NULL, NULL, NULL);
80 delete []pwBuf;
93 WideCharToMultiByte(CP_ACP, 0, pwBuf, nwLen, pBuf, nLen, NULL, NULL);
96 delete []pwBuf;
98 pwBuf = NULL;