File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 13
13
#define __DXCAPI_USE_H__
14
14
15
15
#include " dxc/dxcapi.h"
16
- #include < cstdlib> // for getenv
17
- #include < string>
18
- #include < filesystem> // C++17 and later
16
+ #include < cstdlib> // for getenv
19
17
#include < dxc/Support/Global.h> // for hresult handling with DXC_FAILED
18
+ #include < filesystem> // C++17 and later
19
+ #include < string>
20
20
21
21
namespace dxc {
22
22
@@ -122,7 +122,7 @@ class DxcDllSupport {
122
122
}
123
123
124
124
HRESULT virtual CreateInstance2 (IMalloc *pMalloc, REFCLSID clsid, REFIID riid,
125
- IUnknown **pResult) {
125
+ IUnknown **pResult) {
126
126
if (pResult == nullptr )
127
127
return E_POINTER;
128
128
if (m_dll == nullptr )
@@ -139,9 +139,8 @@ class DxcDllSupport {
139
139
140
140
bool GetCreateInstanceProcs (DxcCreateInstanceProc *pCreateFn,
141
141
DxcCreateInstance2Proc *pCreateFn2) const {
142
- if (pCreateFn == nullptr || pCreateFn2 == nullptr ||
143
- m_createFn == nullptr )
144
- return false ;
142
+ if (pCreateFn == nullptr || pCreateFn2 == nullptr || m_createFn == nullptr )
143
+ return false ;
145
144
*pCreateFn = m_createFn;
146
145
*pCreateFn2 = m_createFn2;
147
146
return true ;
You can’t perform that action at this time.
0 commit comments