mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
Fix function prototypes and two typos.
svn path=/trunk/; revision=31434
This commit is contained in:
parent
046826a03e
commit
36e97b472a
2 changed files with 6 additions and 6 deletions
|
@ -22,5 +22,5 @@
|
||||||
|
|
||||||
TCHAR m_Text[MAX_PATH];
|
TCHAR m_Text[MAX_PATH];
|
||||||
|
|
||||||
void LoadSettings();
|
VOID LoadSettings(VOID);
|
||||||
void SaveSettings();
|
VOID SaveSettings(VOID);
|
||||||
|
|
|
@ -26,10 +26,10 @@
|
||||||
|
|
||||||
TCHAR m_Text[MAX_PATH];
|
TCHAR m_Text[MAX_PATH];
|
||||||
|
|
||||||
void LoadSettings()
|
VOID LoadSettings(VOID)
|
||||||
{
|
{
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
DWORD len = MAX_PATH * sizeof(WCHAR);
|
DWORD len = MAX_PATH * sizeof(TCHAR);
|
||||||
|
|
||||||
RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
|
RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
|
||||||
_T(""), 0, KEY_READ, NULL, &hkey, NULL);
|
_T(""), 0, KEY_READ, NULL, &hkey, NULL);
|
||||||
|
@ -42,14 +42,14 @@ void LoadSettings()
|
||||||
RegCloseKey(hkey);
|
RegCloseKey(hkey);
|
||||||
}
|
}
|
||||||
|
|
||||||
void SaveSettings()
|
VOID SaveSettings(VOID)
|
||||||
{
|
{
|
||||||
HKEY hkey;
|
HKEY hkey;
|
||||||
|
|
||||||
RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
|
RegCreateKeyEx(HKEY_CURRENT_USER, _T("Software\\Microsoft\\ScreenSavers\\Text3D"), 0,
|
||||||
_T(""), 0, KEY_WRITE, NULL, &hkey, NULL);
|
_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);
|
RegCloseKey(hkey);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue