mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 02:05:57 +00:00
[REACTOS] Fix SIZE_T related warnings
This commit is contained in:
parent
826704ba6b
commit
7611cc2b12
21 changed files with 103 additions and 46 deletions
|
@ -351,7 +351,7 @@ HRESULT inline SHSetStrRet(LPSTRRET pStrRet, LPCSTR pstrValue)
|
|||
|
||||
HRESULT inline SHSetStrRet(LPSTRRET pStrRet, LPCWSTR pwstrValue)
|
||||
{
|
||||
ULONG cchr = wcslen(pwstrValue);
|
||||
SIZE_T cchr = wcslen(pwstrValue);
|
||||
LPWSTR buffer = static_cast<LPWSTR>(CoTaskMemAlloc((cchr + 1) * sizeof(WCHAR)));
|
||||
if (buffer == NULL)
|
||||
return E_OUTOFMEMORY;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue