Skip to content

Commit 71d6766

Browse files
authored
Fix the SAL of IDxcResult::GetOutput (microsoft#4487)
The ppOutputName parameter can be nullptr and can return nullptr. Change its SAL to _COM_Outptr_opt_result_maybenull_. Related to microsoft#4149 .
1 parent 5ecee0b commit 71d6766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/dxc/dxcapi.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ struct IDxcResult : public IDxcOperationResult {
777777
virtual HRESULT STDMETHODCALLTYPE
778778
GetOutput(_In_ DXC_OUT_KIND dxcOutKind, _In_ REFIID iid,
779779
_COM_Outptr_opt_result_maybenull_ void **ppvObject,
780-
_COM_Outptr_ IDxcBlobWide **ppOutputName) = 0;
780+
_COM_Outptr_opt_result_maybenull_ IDxcBlobWide **ppOutputName) = 0;
781781

782782
/// \brief Retrieves the number of outputs available in this result.
783783
virtual UINT32 GetNumOutputs() = 0;

0 commit comments

Comments
 (0)