shlwapi: Fix SHPropertyBag_ReadLONG prototype (PVS-Studio).
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5853e7769c
commit
f51e7900eb
|
@ -5187,9 +5187,9 @@ HRESULT WINAPI IUnknown_QueryServiceForWebBrowserApp(IUnknown* lpUnknown,
|
||||||
* pValue: address to receive the property value as a 32-bit signed integer
|
* pValue: address to receive the property value as a 32-bit signed integer
|
||||||
*
|
*
|
||||||
* RETURNS
|
* RETURNS
|
||||||
* 0 for Success
|
* HRESULT codes
|
||||||
*/
|
*/
|
||||||
BOOL WINAPI SHPropertyBag_ReadLONG(IPropertyBag *ppb, LPCWSTR pszPropName, LPLONG pValue)
|
HRESULT WINAPI SHPropertyBag_ReadLONG(IPropertyBag *ppb, LPCWSTR pszPropName, LPLONG pValue)
|
||||||
{
|
{
|
||||||
VARIANT var;
|
VARIANT var;
|
||||||
HRESULT hr;
|
HRESULT hr;
|
||||||
|
|
|
@ -1633,21 +1633,19 @@ static void test_SHPropertyBag_ReadLONG(void)
|
||||||
|
|
||||||
out = 0xfeedface;
|
out = 0xfeedface;
|
||||||
rc = pSHPropertyBag_ReadLONG(NULL, szName1, &out);
|
rc = pSHPropertyBag_ReadLONG(NULL, szName1, &out);
|
||||||
ok(rc == E_INVALIDARG || broken(rc == 0), "incorrect return %x\n",rc);
|
ok(rc == E_INVALIDARG || broken(rc == S_OK), "incorrect return %x\n",rc);
|
||||||
ok(out == 0xfeedface, "value should not have changed\n");
|
ok(out == 0xfeedface, "value should not have changed\n");
|
||||||
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, NULL, &out);
|
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, NULL, &out);
|
||||||
ok(rc == E_INVALIDARG || broken(rc == 0) || broken(rc == 1), "incorrect return %x\n",rc);
|
ok(rc == E_INVALIDARG || broken(rc == S_OK) || broken(rc == S_FALSE), "incorrect return %x\n",rc);
|
||||||
ok(out == 0xfeedface, "value should not have changed\n");
|
ok(out == 0xfeedface, "value should not have changed\n");
|
||||||
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, szName1, NULL);
|
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, szName1, NULL);
|
||||||
ok(rc == E_INVALIDARG || broken(rc == 0) || broken(rc == 1), "incorrect return %x\n",rc);
|
ok(rc == E_INVALIDARG || broken(rc == S_OK) || broken(rc == S_FALSE), "incorrect return %x\n",rc);
|
||||||
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, szName1, &out);
|
rc = pSHPropertyBag_ReadLONG(&pb->IPropertyBag_iface, szName1, &out);
|
||||||
ok(rc == DISP_E_BADVARTYPE || broken(rc == 0) || broken(rc == 1), "incorrect return %x\n",rc);
|
ok(rc == DISP_E_BADVARTYPE || broken(rc == S_OK) || broken(rc == S_FALSE), "incorrect return %x\n",rc);
|
||||||
ok(out == 0xfeedface || broken(out == 0xfeedfa00), "value should not have changed %x\n",out);
|
ok(out == 0xfeedface || broken(out == 0xfeedfa00), "value should not have changed %x\n",out);
|
||||||
IUnknown_Release((IUnknown*)pb);
|
IUnknown_Release((IUnknown*)pb);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static void test_SHSetWindowBits(void)
|
static void test_SHSetWindowBits(void)
|
||||||
{
|
{
|
||||||
HWND hwnd;
|
HWND hwnd;
|
||||||
|
|
Loading…
Reference in New Issue