Commit bf3d719d authored by Gijs Vermeulen's avatar Gijs Vermeulen Committed by Alexandre Julliard

wmp: Return E_POINTER when p is NULL in return_bstr.

parent 3b0e8197
......@@ -535,7 +535,6 @@ static void test_media_item(void)
hr = IWMPPlayer4_newMedia(player, NULL, &media);
ok(hr == S_OK, "Failed to create a media item, hr %#x.\n", hr);
hr = IWMPMedia_get_name(media, NULL);
todo_wine
ok(hr == E_POINTER, "Unexpected hr %#x.\n", hr);
hr = IWMPMedia_get_name(media, &str);
ok(hr == S_OK, "Failed to get item name, hr %#x.\n", hr);
......
......@@ -135,7 +135,7 @@ static inline WCHAR *heap_strdupW(const WCHAR *str)
static inline HRESULT return_bstr(const WCHAR *value, BSTR *p)
{
if(!p)
return E_INVALIDARG;
return E_POINTER;
if(value) {
*p = SysAllocString(value);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment