Skip to content

Commit

Permalink
Just in case WinAdapter.h's CComBSTR is jused
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffnn committed Sep 8, 2023
1 parent 138bd60 commit 84e4f62
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/DxilDia/DxcPixTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ STDMETHODIMP dxil_debug_info::DxcPixTypedefType::GetName(
_Outptr_result_z_ BSTR *Name)
{
*Name =
CComBSTR(GetTypeNameOrDefault(m_pType)).Detach();
CComBSTR(CA2W(GetTypeNameOrDefault(m_pType))).Detach();
return S_OK;
}

Expand All @@ -144,7 +144,7 @@ STDMETHODIMP dxil_debug_info::DxcPixScalarType::GetName(
_Outptr_result_z_ BSTR *Name)
{
*Name =
CComBSTR(GetTypeNameOrDefault(m_pType)).Detach();
CComBSTR(CA2W(GetTypeNameOrDefault(m_pType))).Detach();
return S_OK;
}

Expand All @@ -166,7 +166,7 @@ STDMETHODIMP dxil_debug_info::DxcPixScalarType::UnAlias(
STDMETHODIMP dxil_debug_info::DxcPixArrayType::GetName(
_Outptr_result_z_ BSTR *Name)
{
CComBSTR name(GetTypeNameOrDefault(m_pBaseType));
CComBSTR name(CA2W(GetTypeNameOrDefault(m_pBaseType)));
name.Append(L"[]");
*Name = name.Detach();
return S_OK;
Expand Down Expand Up @@ -237,7 +237,7 @@ STDMETHODIMP dxil_debug_info::DxcPixStructType::GetName(
_Outptr_result_z_ BSTR *Name)
{
*Name =
CComBSTR(GetTypeNameOrDefault(m_pStruct)).Detach();
CComBSTR(CA2W(GetTypeNameOrDefault(m_pStruct))).Detach();
return S_OK;
}

Expand Down Expand Up @@ -370,7 +370,7 @@ STDMETHODIMP dxil_debug_info::DxcPixStructField::GetName(
_Outptr_result_z_ BSTR *Name)
{
*Name =
CComBSTR(GetTypeNameOrDefault(m_pField)).Detach();
CComBSTR(CA2W(GetTypeNameOrDefault(m_pField))).Detach();
return S_OK;
}

Expand Down

0 comments on commit 84e4f62

Please sign in to comment.