Author: tfaber
Date: Sat Aug 6 12:15:16 2016
New Revision: 72135
URL:
http://svn.reactos.org/svn/reactos?rev=72135&view=rev
Log:
[SYSDM]
- Less ambiguously check the return value of DialogBoxParam
CORE-11794
Modified:
trunk/reactos/dll/cpl/sysdm/environment.c
Modified: trunk/reactos/dll/cpl/sysdm/environment.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/sysdm/environment.…
==============================================================================
--- trunk/reactos/dll/cpl/sysdm/environment.c [iso-8859-1] (original)
+++ trunk/reactos/dll/cpl/sysdm/environment.c [iso-8859-1] Sat Aug 6 12:15:16 2016
@@ -353,11 +353,11 @@
VarData = GlobalAlloc(GPTR, sizeof(VARIABLE_DATA));
- if (!DialogBoxParam(hApplet,
- MAKEINTRESOURCE(IDD_EDIT_VARIABLE),
- hwndDlg,
- (DLGPROC)EditVariableDlgProc,
- (LPARAM)VarData) > 0)
+ if (DialogBoxParam(hApplet,
+ MAKEINTRESOURCE(IDD_EDIT_VARIABLE),
+ hwndDlg,
+ EditVariableDlgProc,
+ (LPARAM)VarData) <= 0)
{
if (VarData->lpName != NULL)
GlobalFree(VarData->lpName);
@@ -412,7 +412,7 @@
if (DialogBoxParam(hApplet,
MAKEINTRESOURCE(IDD_EDIT_VARIABLE),
hwndDlg,
- (DLGPROC)EditVariableDlgProc,
+ EditVariableDlgProc,
(LPARAM)VarData) > 0)
{
ListView_SetItemText(hwndListView, iItem, 0, VarData->lpName);