1
0
Fork 0
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:
reuk 2024-04-25 11:39:26 +01:00
parent f46c72e854
commit 0422d42f7d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C

View file

@ -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;