mirror of
https://github.com/reactos/reactos.git
synced 2025-02-28 19:32:59 +00:00
[SHLWAPI] Explicitly cast to "int*" the 3rd parameter of StrToIntExW calls (fix build)
Fixes build error: ../src/dll/win32/shlwapi/ordinal.c:5417:63: error: passing argument 3 of 'StrToIntExW' from incompatible pointer type [-Werror=incompatible-pointer-types] if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, &V_I4(&variTemp))) In file included from ../src/dll/win32/shlwapi/ordinal.c:45: ../src/sdk/include/psdk/shlwapi.h:1682:52: note: expected 'int *' but argument is of type 'LONG *' {aka 'long int *'} BOOL WINAPI StrToIntExW(_In_ LPCWSTR, DWORD, _Out_ int*); ^~~~
This commit is contained in:
parent
6f60301d25
commit
c19ebd0b0a
1 changed files with 3 additions and 3 deletions
|
@ -5414,7 +5414,7 @@ HRESULT VariantChangeTypeForRead(_Inout_ VARIANTARG *pvarg, _In_ VARTYPE vt)
|
|||
|
||||
if (vt == VT_I1 || vt == VT_I2 || vt == VT_I4)
|
||||
{
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, &V_I4(&variTemp)))
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, (int*)&V_I4(&variTemp)))
|
||||
goto DoDefault;
|
||||
|
||||
V_VT(&variTemp) = VT_INT;
|
||||
|
@ -5429,7 +5429,7 @@ HRESULT VariantChangeTypeForRead(_Inout_ VARIANTARG *pvarg, _In_ VARTYPE vt)
|
|||
|
||||
if (vt == VT_UI1 || vt == VT_UI2 || vt == VT_UI4)
|
||||
{
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, (LPINT)&V_UI4(&variTemp)))
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, (int*)&V_UI4(&variTemp)))
|
||||
goto DoDefault;
|
||||
|
||||
V_VT(&variTemp) = VT_UINT;
|
||||
|
@ -5441,7 +5441,7 @@ HRESULT VariantChangeTypeForRead(_Inout_ VARIANTARG *pvarg, _In_ VARTYPE vt)
|
|||
|
||||
if (vt == VT_INT || vt == VT_UINT)
|
||||
{
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, &V_INT(&variTemp)))
|
||||
if (!StrToIntExW(V_BSTR(&vargTemp), STIF_SUPPORT_HEX, (int*)&V_INT(&variTemp)))
|
||||
goto DoDefault;
|
||||
|
||||
V_VT(&variTemp) = VT_UINT;
|
||||
|
|
Loading…
Reference in a new issue