Fix warnings as error fixes.
This commit is contained in:
parent
f122c44b07
commit
8151c90c6b
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue