Author: pschweitzer
Date: Sat Apr 5 22:08:57 2014
New Revision: 62636
URL:
http://svn.reactos.org/svn/reactos?rev=62636&view=rev
Log:
[CHARMAP]
Remove useless checks
CID #1102274
Modified:
trunk/reactos/base/applications/charmap/settings.c
Modified: trunk/reactos/base/applications/charmap/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/charmap/…
==============================================================================
--- trunk/reactos/base/applications/charmap/settings.c [iso-8859-1] (original)
+++ trunk/reactos/base/applications/charmap/settings.c [iso-8859-1] Sat Apr 5 22:08:57
2014
@@ -122,13 +122,13 @@
hWnd = GetDlgItem(hCharmapDlg, IDC_FONTCOMBO);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
- if(szBuffer != NULL && *szBuffer != '\0')
+ if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("Font"), 0, REG_SZ, (LPBYTE) szBuffer,
(DWORD) MAX_PATH);
hWnd = GetDlgItem(hCharmapDlg, IDC_COMBO_CHARSET);
ComboBox_GetText(hWnd, szBuffer, MAX_PATH);
- if(szBuffer != NULL && *szBuffer != '\0')
+ if(*szBuffer != '\0')
RegSetValueEx(hKey, _T("CodePage"), 0, REG_SZ, (LPBYTE)
szBuffer, (DWORD) MAX_PATH);
RegSetValueEx(hKey, _T("Advanced"), 0, REG_DWORD,
(LPBYTE)&Settings.IsAdvancedView, (DWORD) sizeof(DWORD));