https://git.reactos.org/?p=reactos.git;a=commitdiff;h=3a1a2aa16f44ba7c42ec9…
commit 3a1a2aa16f44ba7c42ec95b38e4db28fa61c2a24
Author: Hervé Poussineau <hpoussin(a)reactos.org>
AuthorDate: Sun Apr 17 08:08:12 2022 +0200
Commit: Hervé Poussineau <hpoussin(a)reactos.org>
CommitDate: Sun Apr 17 08:46:09 2022 +0200
[WIN32SS] Fix use of unitialized variable
---
win32ss/gdi/eng/pdevobj.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/win32ss/gdi/eng/pdevobj.c b/win32ss/gdi/eng/pdevobj.c
index 410e8998146..e1f9da54c69 100644
--- a/win32ss/gdi/eng/pdevobj.c
+++ b/win32ss/gdi/eng/pdevobj.c
@@ -768,7 +768,7 @@ PDEVOBJ_lChangeDisplaySettings(
_Out_ PMDEVOBJ *ppmdevNew,
_In_ BOOL bSearchClosestMode)
{
- PGRAPHICS_DEVICE pGraphicsDevice;
+ PGRAPHICS_DEVICE pGraphicsDevice = NULL;
PMDEVOBJ pmdev = NULL;
PDEVMODEW pdm = NULL;
ULONG lRet = DISP_CHANGE_SUCCESSFUL;