Fixed bug 4840 - Read of uninitialized memory in DXGI_LoadDLL (Thanks!)

This commit is contained in:
Sylvain Becker 2019-10-23 09:26:27 +02:00
parent d5d34de4db
commit c9d0e2ae0a

View File

@ -386,7 +386,7 @@ SDL_DXGIGetOutputInfo(int displayIndex, int *adapterIndex, int *outputIndex)
void *pDXGIDLL;
char *displayName;
int nAdapter, nOutput;
IDXGIFactory *pDXGIFactory;
IDXGIFactory *pDXGIFactory = NULL;
IDXGIAdapter *pDXGIAdapter;
IDXGIOutput* pDXGIOutput;