Lines Matching full:hr
29 HRESULT hr = S_OK; in FilenameListCchLengthA() local
35 hr = StringCchLengthA(pszSource, cchMax - length, &oneLength); in FilenameListCchLengthA()
36 if (FAILED(hr)) { in FilenameListCchLengthA()
37 return hr; in FilenameListCchLengthA()
46 return hr; in FilenameListCchLengthA()
50 HRESULT hr = S_OK; in FilenameListCchLengthW() local
56 hr = StringCchLengthW(pszSource, cchMax - length, &oneLength); in FilenameListCchLengthW()
57 if (FAILED(hr)) { in FilenameListCchLengthW()
58 return hr; in FilenameListCchLengthW()
67 return hr; in FilenameListCchLengthW()
71 HRESULT hr = S_OK; in FilenameListCchCopyA() local
78 hr = StringCchCopyExA(pszDest, cchDest, pszSource, &newDest, &cchDest, 0); in FilenameListCchCopyA()
79 if (FAILED(hr)) { in FilenameListCchCopyA()
80 return hr; in FilenameListCchCopyA()
86 hr = StringCchCopyExA(pszDest, cchDest, pszSeparator, &newDest, &cchDest, 0); in FilenameListCchCopyA()
87 if (FAILED(hr)) { in FilenameListCchCopyA()
88 return hr; in FilenameListCchCopyA()
94 return hr; in FilenameListCchCopyA()
98 HRESULT hr = S_OK; in FilenameListCchCopyW() local
105 hr = StringCchCopyExW(pszDest, cchDest, pszSource, &newDest, &cchDest, 0); in FilenameListCchCopyW()
106 if (FAILED(hr)) { in FilenameListCchCopyW()
107 return hr; in FilenameListCchCopyW()
113 hr = StringCchCopyExW(pszDest, cchDest, pszSeparator, &newDest, &cchDest, 0); in FilenameListCchCopyW()
114 if (FAILED(hr)) { in FilenameListCchCopyW()
115 return hr; in FilenameListCchCopyW()
121 return hr; in FilenameListCchCopyW()
164 auto hr = pDataObj->GetData(&fmt, &medium); in UpdateDropDescription() local
165 if (FAILED(hr)) { in UpdateDropDescription()
167 return hr; in UpdateDropDescription()
191 HRESULT hr; in GetDragWindow() local
202 hr = pDataObj->GetData(&fmt, &medium); in GetDragWindow()
203 if (FAILED(hr)) { in GetDragWindow()
205 return hr; in GetDragWindow()
229 HRESULT hr; in GetArguments() local
241 hr = pDataObj->GetData(&fmt, &medium); in GetArguments()
242 if (FAILED(hr)) { in GetArguments()
244 return hr; in GetArguments()
262 hr = FilenameListCchLengthW(files, 32767, &len, &count); in GetArguments()
263 if (SUCCEEDED(hr)) { in GetArguments()
266 hr = FilenameListCchCopyW(args, 32767, files, L" "); in GetArguments()
267 if (SUCCEEDED(hr)) { in GetArguments()
273 hr = E_OUTOFMEMORY; in GetArguments()
279 hr = FilenameListCchLengthA(files, 32767, &len, &count); in GetArguments()
280 if (SUCCEEDED(hr)) { in GetArguments()
283 hr = FilenameListCchCopyA(temp, 32767, files, " "); in GetArguments()
284 if (SUCCEEDED(hr)) { in GetArguments()
293 hr = E_FAIL; in GetArguments()
297 hr = E_FAIL; in GetArguments()
302 hr = E_OUTOFMEMORY; in GetArguments()
310 return hr; in GetArguments()
393 HRESULT hr; in GetCurFile() local
400 hr = StringCchLength(target, STRSAFE_MAX_CCH - 1, &len); in GetCurFile()
401 if (FAILED(hr)) { in GetCurFile()
410 hr = StringCchCopy(*ppszFileName, len + 1, target); in GetCurFile()
411 if (FAILED(hr)) { in GetCurFile()
425 HRESULT hr; in Load() local
431 hr = StringCchLength(pszFileName, STRSAFE_MAX_CCH - 1, &len); in Load()
432 if (FAILED(hr)) { in Load()
434 return hr; in Load()
455 hr = StringCchCopy(target, len + 1, pszFileName); in Load()
456 if (FAILED(hr)) { in Load()
458 return hr; in Load()
461 hr = StringCchCopy(target_dir, len + 1, pszFileName); in Load()
462 if (FAILED(hr)) { in Load()
464 return hr; in Load()