Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/PJO2/tftpd64.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Jounin <philippe.jounin@orange.fr>2019-02-27 11:04:24 +0300
committerPhilippe Jounin <philippe.jounin@orange.fr>2019-02-27 11:04:24 +0300
commit90f3e5718aa95636bec748776ec4a5443d1b4351 (patch)
tree6604f1f5f9b43859d657a19dbb97e9386de3aaea
parent3d31ae4fabbc16947881619590dc499b5704e019 (diff)
fix abort in gauge window4.70
-rw-r--r--src/_gui/gui_gauges.c12
1 files 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;