Commit 2b4377f5 authored by Thomas Weidenmueller's avatar Thomas Weidenmueller Committed by Alexandre Julliard

quartz: Fix incorrect usages of the HRESULT_FROM_WIN32 macro.

parent 3c7afa61
...@@ -192,6 +192,7 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p ...@@ -192,6 +192,7 @@ static HRESULT process_pattern_string(LPCWSTR wszPatternString, IAsyncReader * p
static HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID * majorType, GUID * minorType) static HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, GUID * majorType, GUID * minorType)
{ {
HKEY hkeyMediaType = NULL; HKEY hkeyMediaType = NULL;
LONG lRet;
HRESULT hr = S_OK; HRESULT hr = S_OK;
BOOL bFound = FALSE; BOOL bFound = FALSE;
static const WCHAR wszMediaType[] = {'M','e','d','i','a',' ','T','y','p','e',0}; static const WCHAR wszMediaType[] = {'M','e','d','i','a',' ','T','y','p','e',0};
...@@ -199,7 +200,8 @@ static HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName, ...@@ -199,7 +200,8 @@ static HRESULT GetClassMediaFile(IAsyncReader * pReader, LPCOLESTR pszFileName,
CopyMemory(majorType, &GUID_NULL, sizeof(*majorType)); CopyMemory(majorType, &GUID_NULL, sizeof(*majorType));
CopyMemory(minorType, &GUID_NULL, sizeof(*minorType)); CopyMemory(minorType, &GUID_NULL, sizeof(*minorType));
hr = HRESULT_FROM_WIN32(RegOpenKeyExW(HKEY_CLASSES_ROOT, wszMediaType, 0, KEY_READ, &hkeyMediaType)); lRet = RegOpenKeyExW(HKEY_CLASSES_ROOT, wszMediaType, 0, KEY_READ, &hkeyMediaType);
hr = HRESULT_FROM_WIN32(lRet);
if (SUCCEEDED(hr)) if (SUCCEEDED(hr))
{ {
......
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