mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-08 04:20:09 +00:00
VBlankDispatcher: Ensure the result of CreateDXGIFactory is non-null before use
This commit is contained in:
parent
f46c72e854
commit
0422d42f7d
1 changed files with 7 additions and 1 deletions
|
|
@ -1629,9 +1629,15 @@ public:
|
|||
|
||||
ComSmartPtr<IDXGIFactory> factory;
|
||||
JUCE_BEGIN_IGNORE_WARNINGS_GCC_LIKE ("-Wlanguage-extension-token")
|
||||
CreateDXGIFactory (__uuidof (IDXGIFactory), (void**)factory.resetAndGetPointerAddress());
|
||||
CreateDXGIFactory (__uuidof (IDXGIFactory), (void**) factory.resetAndGetPointerAddress());
|
||||
JUCE_END_IGNORE_WARNINGS_GCC_LIKE
|
||||
|
||||
if (factory == nullptr)
|
||||
{
|
||||
jassertfalse;
|
||||
return;
|
||||
}
|
||||
|
||||
UINT i = 0;
|
||||
ComSmartPtr<IDXGIAdapter> adapter;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue