Browse Source

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

Sylvain Becker 5 năm trước cách đây
mục cha
commit
c9d0e2ae0a
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      src/video/windows/SDL_windowsvideo.c

+ 1 - 1
src/video/windows/SDL_windowsvideo.c

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