1
0
mirror of https://github.com/Relintai/sdl2_frt.git synced 2024-12-20 22:16:49 +01:00

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; void *pDXGIDLL;
char *displayName; char *displayName;
int nAdapter, nOutput; int nAdapter, nOutput;
IDXGIFactory *pDXGIFactory; IDXGIFactory *pDXGIFactory = NULL;
IDXGIAdapter *pDXGIAdapter; IDXGIAdapter *pDXGIAdapter;
IDXGIOutput* pDXGIOutput; IDXGIOutput* pDXGIOutput;