소스 검색

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

Sylvain Becker 5 년 전
부모
커밋
c9d0e2ae0a
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;