From: Alex Henrie alexhenrie24@gmail.com
--- dlls/wintypes/main.c | 34 ++++++++++++---------------------- 1 file changed, 12 insertions(+), 22 deletions(-)
diff --git a/dlls/wintypes/main.c b/dlls/wintypes/main.c index e48a1b487a6..c0d4b3d8430 100644 --- a/dlls/wintypes/main.c +++ b/dlls/wintypes/main.c @@ -34,16 +34,6 @@
WINE_DEFAULT_DEBUG_CHANNEL(wintypes);
-static const char *debugstr_hstring(HSTRING hstr) -{ - const WCHAR *str; - UINT32 len; - if (hstr && !((ULONG_PTR)hstr >> 16)) - return "(invalid)"; - str = WindowsGetStringRawBuffer(hstr, &len); - return wine_dbgstr_wn(str, len); -} - struct wintypes { IActivationFactory IActivationFactory_iface; @@ -192,7 +182,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_GetTrustLevel( static HRESULT STDMETHODCALLTYPE api_information_statics_IsTypePresent( IApiInformationStatics *iface, HSTRING type_name, BOOLEAN *value) { - FIXME("iface %p, type_name %s, value %p stub!\n", iface, debugstr_hstring(type_name), value); + FIXME("iface %p, type_name %s, value %p stub!\n", iface, wine_dbgstr_h(type_name), value);
if (!type_name) return E_INVALIDARG; @@ -204,7 +194,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsMethodPresent( IApiInformationStatics *iface, HSTRING type_name, HSTRING method_name, BOOLEAN *value) { FIXME("iface %p, type_name %s, method_name %s, value %p stub!\n", iface, - debugstr_hstring(type_name), debugstr_hstring(method_name), value); + wine_dbgstr_h(type_name), wine_dbgstr_h(method_name), value);
if (!type_name) return E_INVALIDARG; @@ -217,7 +207,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsMethodPresentWithArit UINT32 input_parameter_count, BOOLEAN *value) { FIXME("iface %p, type_name %s, method_name %s, input_parameter_count %u, value %p stub!\n", - iface, debugstr_hstring(type_name), debugstr_hstring(method_name), + iface, wine_dbgstr_h(type_name), wine_dbgstr_h(method_name), input_parameter_count, value);
if (!type_name) @@ -230,7 +220,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsEventPresent( IApiInformationStatics *iface, HSTRING type_name, HSTRING event_name, BOOLEAN *value) { FIXME("iface %p, type_name %s, event_name %s, value %p stub!\n", iface, - debugstr_hstring(type_name), debugstr_hstring(event_name), value); + wine_dbgstr_h(type_name), wine_dbgstr_h(event_name), value);
if (!type_name) return E_INVALIDARG; @@ -242,7 +232,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsPropertyPresent( IApiInformationStatics *iface, HSTRING type_name, HSTRING property_name, BOOLEAN *value) { FIXME("iface %p, type_name %s, property_name %s, value %p stub!\n", iface, - debugstr_hstring(type_name), debugstr_hstring(property_name), value); + wine_dbgstr_h(type_name), wine_dbgstr_h(property_name), value);
if (!type_name) return E_INVALIDARG; @@ -255,7 +245,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsReadOnlyPropertyPrese BOOLEAN *value) { FIXME("iface %p, type_name %s, property_name %s, value %p stub!\n", iface, - debugstr_hstring(type_name), debugstr_hstring(property_name), value); + wine_dbgstr_h(type_name), wine_dbgstr_h(property_name), value);
if (!type_name) return E_INVALIDARG; @@ -267,7 +257,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsWriteablePropertyPres IApiInformationStatics *iface, HSTRING type_name, HSTRING property_name, BOOLEAN *value) { FIXME("iface %p, type_name %s, property_name %s, value %p stub!\n", iface, - debugstr_hstring(type_name), debugstr_hstring(property_name), value); + wine_dbgstr_h(type_name), wine_dbgstr_h(property_name), value);
if (!type_name) return E_INVALIDARG; @@ -279,7 +269,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsEnumNamedValuePresent IApiInformationStatics *iface, HSTRING enum_type_name, HSTRING value_name, BOOLEAN *value) { FIXME("iface %p, enum_type_name %s, value_name %s, value %p stub!\n", iface, - debugstr_hstring(enum_type_name), debugstr_hstring(value_name), value); + wine_dbgstr_h(enum_type_name), wine_dbgstr_h(value_name), value);
if (!enum_type_name) return E_INVALIDARG; @@ -291,7 +281,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsApiContractPresentByM IApiInformationStatics *iface, HSTRING contract_name, UINT16 major_version, BOOLEAN *value) { FIXME("iface %p, contract_name %s, major_version %u, value %p stub!\n", iface, - debugstr_hstring(contract_name), major_version, value); + wine_dbgstr_h(contract_name), major_version, value);
if (!contract_name) return E_INVALIDARG; @@ -305,7 +295,7 @@ static HRESULT STDMETHODCALLTYPE api_information_statics_IsApiContractPresentByM UINT16 minor_version, BOOLEAN *value) { FIXME("iface %p, contract_name %s, major_version %u, minor_version %u, value %p stub!\n", iface, - debugstr_hstring(contract_name), major_version, minor_version, value); + wine_dbgstr_h(contract_name), major_version, minor_version, value);
if (!contract_name) return E_INVALIDARG; @@ -350,7 +340,7 @@ HRESULT WINAPI DllGetClassObject(REFCLSID clsid, REFIID riid, void **out)
HRESULT WINAPI DllGetActivationFactory(HSTRING classid, IActivationFactory **factory) { - TRACE("classid %s, factory %p.\n", debugstr_hstring(classid), factory); + TRACE("classid %s, factory %p.\n", wine_dbgstr_h(classid), factory); *factory = &wintypes.IActivationFactory_iface; IUnknown_AddRef(*factory); return S_OK; @@ -369,7 +359,7 @@ HRESULT WINAPI RoResolveNamespace(HSTRING name, HSTRING windowsMetaDataDir, DWORD *subNamespacesCount, HSTRING **subNamespaces) { FIXME("name %s, windowsMetaDataDir %s, metaDataFilePaths %p, subNamespaces %p stub!\n", - debugstr_hstring(name), debugstr_hstring(windowsMetaDataDir), + wine_dbgstr_h(name), wine_dbgstr_h(windowsMetaDataDir), metaDataFilePaths, subNamespaces);
if (!metaDataFilePaths && !subNamespaces)