Fix a warning. Modified: trunk/reactos/subsys/system/regedit/edit.c _____
Modified: trunk/reactos/subsys/system/regedit/edit.c --- trunk/reactos/subsys/system/regedit/edit.c 2005-05-28 19:38:17 UTC (rev 15605) +++ trunk/reactos/subsys/system/regedit/edit.c 2005-05-28 19:38:54 UTC (rev 15606) @@ -276,7 +276,7 @@
TCHAR ValueString[32]; LPTSTR Remainder; DWORD Base; - DWORD Value; + DWORD Value = 0;
switch(uMsg) { case WM_INITDIALOG: @@ -315,19 +315,11 @@ { if ((len = GetWindowTextLength(hwndValue))) { - if (!GetWindowText(hwndValue, ValueString, 32)) + if (GetWindowText(hwndValue, ValueString, 32)) { - Value = 0; - } - else - { Value = _tcstoul (ValueString, &Remainder, 10); } } - else - { - Value = 0; - } } _stprintf (ValueString, _T("%lx"), Value); SetDlgItemText(hwndDlg, IDC_VALUE_DATA, ValueString); @@ -343,19 +335,11 @@ { if ((len = GetWindowTextLength(hwndValue))) { - if (!GetWindowText(hwndValue, ValueString, 32)) + if (GetWindowText(hwndValue, ValueString, 32)) { - Value = 0; - } - else - { Value = _tcstoul (ValueString, &Remainder, 16); } } - else - { - Value = 0; - } } _stprintf (ValueString, _T("%lu"), Value); SetDlgItemText(hwndDlg, IDC_VALUE_DATA, ValueString);