Author: ekohl
Date: Tue Dec 25 18:45:53 2007
New Revision: 31434
URL:
http://svn.reactos.org/svn/reactos?rev=31434&view=rev
Log:
Fix function prototypes and two typos.
Modified:
trunk/reactos/base/applications/screensavers/3dtext/3dtext.h
trunk/reactos/base/applications/screensavers/3dtext/settings.c
Modified: trunk/reactos/base/applications/screensavers/3dtext/3dtext.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/screensa…
==============================================================================
--- trunk/reactos/base/applications/screensavers/3dtext/3dtext.h (original)
+++ trunk/reactos/base/applications/screensavers/3dtext/3dtext.h Tue Dec 25 18:45:53 2007
@@ -22,5 +22,5 @@
TCHAR m_Text[MAX_PATH];
-void LoadSettings();
-void SaveSettings();
+VOID LoadSettings(VOID);
+VOID SaveSettings(VOID);
Modified: trunk/reactos/base/applications/screensavers/3dtext/settings.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/base/applications/screensa…
==============================================================================
--- trunk/reactos/base/applications/screensavers/3dtext/settings.c (original)
+++ trunk/reactos/base/applications/screensavers/3dtext/settings.c Tue Dec 25 18:45:53
2007
@@ -26,10 +26,10 @@
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 @@
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);
}