Fix function prototypes and two typos.
authorEric Kohl <eric.kohl@reactos.org>
Tue, 25 Dec 2007 15:45:53 +0000 (15:45 +0000)
committerEric Kohl <eric.kohl@reactos.org>
Tue, 25 Dec 2007 15:45:53 +0000 (15:45 +0000)
svn path=/trunk/; revision=31434

reactos/base/applications/screensavers/3dtext/3dtext.h
reactos/base/applications/screensavers/3dtext/settings.c

index 633c3ca..bafa2e5 100644 (file)
@@ -22,5 +22,5 @@
 
 TCHAR m_Text[MAX_PATH];
 
-void LoadSettings();
-void SaveSettings();
+VOID LoadSettings(VOID);
+VOID SaveSettings(VOID);
index ac4d8cd..3c94902 100644 (file)
 
 TCHAR m_Text[MAX_PATH];
 
-void LoadSettings()
+VOID LoadSettings(VOID)
 {
        HKEY hkey;
-       DWORD len = MAX_PATH * sizeof(WCHAR);
+       DWORD len = MAX_PATH * sizeof(TCHAR);
 
        RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
                _T(""), 0, KEY_READ, NULL, &hkey, NULL);
@@ -42,14 +42,14 @@ void LoadSettings()
        RegCloseKey(hkey);
 }
 
-void SaveSettings()
+VOID SaveSettings(VOID)
 {
        HKEY hkey;
 
        RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
                _T(""), 0, KEY_WRITE, NULL, &hkey, NULL);
 
-       RegSetValueEx(hkey, _T("DisplayString"), 0, REG_SZ, (LPBYTE)m_Text, (_tcslen(m_Text) + 1) * sizeof(WCHAR));
+       RegSetValueEx(hkey, _T("DisplayString"), 0, REG_SZ, (LPBYTE)m_Text, (_tcslen(m_Text) + 1) * sizeof(TCHAR));
 
        RegCloseKey(hkey);
 }