Fix warnings as error fixes.

This commit is contained in:
Zac Walker 2018-06-27 16:28:12 +02:00
parent f122c44b07
commit 8151c90c6b

View file

@ -109,7 +109,7 @@ void RunSaveDialogInNewThread(const RunState& run_state,
static HRESULT GetFileNameFromShellItem(IShellItem* pShellItem, static HRESULT GetFileNameFromShellItem(IShellItem* pShellItem,
SIGDN type, SIGDN type,
LPWSTR lpstr, LPWSTR lpstr,
int cchLength) { size_t cchLength) {
assert(pShellItem != NULL); assert(pShellItem != NULL);
LPWSTR lpstrName = NULL; LPWSTR lpstrName = NULL;
@ -119,7 +119,7 @@ static HRESULT GetFileNameFromShellItem(IShellItem* pShellItem,
if (wcslen(lpstrName) < cchLength) { if (wcslen(lpstrName) < cchLength) {
wcscpy_s(lpstr, cchLength, lpstrName); wcscpy_s(lpstr, cchLength, lpstrName);
} else { } else {
assert(FALSE); NOTREACHED();
hRet = DISP_E_BUFFERTOOSMALL; hRet = DISP_E_BUFFERTOOSMALL;
} }