From 90f3e5718aa95636bec748776ec4a5443d1b4351 Mon Sep 17 00:00:00 2001 From: Philippe Jounin Date: Wed, 27 Feb 2019 09:04:24 +0100 Subject: fix abort in gauge window --- src/_gui/gui_gauges.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/_gui/gui_gauges.c b/src/_gui/gui_gauges.c index f1519c4..e716743 100644 --- a/src/_gui/gui_gauges.c +++ b/src/_gui/gui_gauges.c @@ -62,11 +62,13 @@ static int nGaugeWindow; pTftpGui!=NULL && pTftpGui->hGaugeWnd!=hWnd ; pTftpGui=pTftpGui->next ); // kill associated transfer - if (pTftpGui!=NULL) - PostMessage ( GetParent (GetParent (hWnd)), - WM_TFTP_TRANFSER_TO_KILL, - 0, - pTftpGui->dwTransferId ); + if (pTftpGui != NULL) + { + PostMessage (GetParent (hWnd), + WM_TFTP_TRANFSER_TO_KILL, + 0, + pTftpGui->dwTransferId); + } } break; -- cgit v1.2.3