serialui: Fix dereference of a null pointers (clang)
André Hentschel
nerv at dawncrow.de
Sun Jul 17 07:26:20 CDT 2011
---
dlls/serialui/confdlg.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/serialui/confdlg.c b/dlls/serialui/confdlg.c
index 0409675..c3b0ad7 100644
--- a/dlls/serialui/confdlg.c
+++ b/dlls/serialui/confdlg.c
@@ -371,7 +371,10 @@ static INT_PTR CALLBACK SERIALUI_ConfigDialogProc(HWND hWnd, UINT uMsg, WPARAM w
info = (SERIALUI_DialogInfo *) GetWindowLongPtrW(hWnd, DWLP_USER);
if(!info)
+ {
EndDialog(hWnd,0);
+ return FALSE;
+ }
switch (wID)
{
case IDOK:
--
Best Regards, André Hentschel
More information about the wine-patches
mailing list