Author: ekohl
Date: Sun Apr 22 21:55:11 2007
New Revision: 26466
URL:
http://svn.reactos.org/svn/reactos?rev=26466&view=rev
Log:
Add message boxes to confirm the removal of user cursor schemes and the replacement of
existing cursor schemes.
Modified:
trunk/reactos/dll/cpl/main/lang/cs-CZ.rc
trunk/reactos/dll/cpl/main/lang/de-DE.rc
trunk/reactos/dll/cpl/main/lang/en-US.rc
trunk/reactos/dll/cpl/main/lang/es-ES.rc
trunk/reactos/dll/cpl/main/lang/fr-FR.rc
trunk/reactos/dll/cpl/main/lang/hu-HU.rc
trunk/reactos/dll/cpl/main/lang/id-ID.rc
trunk/reactos/dll/cpl/main/lang/it-IT.rc
trunk/reactos/dll/cpl/main/lang/ja-JP.rc
trunk/reactos/dll/cpl/main/lang/nl-NL.rc
trunk/reactos/dll/cpl/main/lang/pl-PL.rc
trunk/reactos/dll/cpl/main/lang/ru-RU.rc
trunk/reactos/dll/cpl/main/lang/uk-UA.rc
trunk/reactos/dll/cpl/main/mouse.c
trunk/reactos/dll/cpl/main/resource.h
Modified: trunk/reactos/dll/cpl/main/lang/cs-CZ.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/cs-CZ.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/cs-CZ.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/cs-CZ.rc Sun Apr 22 21:55:11 2007
@@ -163,4 +163,8 @@
IDS_SYSTEM_SCHEME "(systémové schéma)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/de-DE.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/de-DE.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/de-DE.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/de-DE.rc Sun Apr 22 21:55:11 2007
@@ -165,4 +165,9 @@
IDS_SYSTEM_SCHEME "(Systemschema)"
IDS_BROWSE_FILTER "Cursor (*.ani, *.cur)\0*.ani;*.cur\0Animierte Cursor
(*.ani)\0*.ani\0Statische Cursor (*.cur)\0*.cur\0Alle Dateien\0*.*\0\0"
IDS_BROWSE_TITLE "Durchsuchen"
+ IDS_REMOVE_TITLE "Löschen des Cursorschemas bestätigen"
+ IDS_REMOVE_TEXT "Soll das Cursorschema '%s' wirklich gelöscht
werden?"
+ IDS_OVERWRITE_TITLE "Cursorschema überscheiben"
+ IDS_OVERWRITE_TEXT "Ein Cursorschema mit diesem Namen existiert bereits. Möchen
Sie das existierende Cursorschema überscheiben?"
END
+
Modified: trunk/reactos/dll/cpl/main/lang/en-US.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/en-US.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/en-US.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/en-US.rc Sun Apr 22 21:55:11 2007
@@ -163,4 +163,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Cursor Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/es-ES.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/es-ES.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/es-ES.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/es-ES.rc Sun Apr 22 21:55:11 2007
@@ -164,4 +164,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/fr-FR.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/fr-FR.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/fr-FR.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/fr-FR.rc Sun Apr 22 21:55:11 2007
@@ -164,4 +164,8 @@
IDS_SYSTEM_SCHEME "(Arrangement système)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/hu-HU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/hu-HU.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/hu-HU.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/hu-HU.rc Sun Apr 22 21:55:11 2007
@@ -164,4 +164,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/id-ID.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/id-ID.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/id-ID.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/id-ID.rc Sun Apr 22 21:55:11 2007
@@ -163,4 +163,8 @@
IDS_SYSTEM_SCHEME "(skema sistem)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/it-IT.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/it-IT.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/it-IT.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/it-IT.rc Sun Apr 22 21:55:11 2007
@@ -165,4 +165,8 @@
IDS_SYSTEM_SCHEME "(Schema di sistema)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/ja-JP.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/ja-JP.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/ja-JP.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/ja-JP.rc Sun Apr 22 21:55:11 2007
@@ -163,4 +163,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/nl-NL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/nl-NL.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/nl-NL.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/nl-NL.rc Sun Apr 22 21:55:11 2007
@@ -162,4 +162,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/pl-PL.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/pl-PL.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/pl-PL.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/pl-PL.rc Sun Apr 22 21:55:11 2007
@@ -169,4 +169,8 @@
IDS_SYSTEM_SCHEME "(schemat systemu)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/ru-RU.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/ru-RU.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/ru-RU.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/ru-RU.rc Sun Apr 22 21:55:11 2007
@@ -164,4 +164,8 @@
IDS_SYSTEM_SCHEME "(system scheme)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/lang/uk-UA.rc
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/lang/uk-UA.rc…
==============================================================================
--- trunk/reactos/dll/cpl/main/lang/uk-UA.rc (original)
+++ trunk/reactos/dll/cpl/main/lang/uk-UA.rc Sun Apr 22 21:55:11 2007
@@ -171,4 +171,8 @@
IDS_SYSTEM_SCHEME "(ñèñòåìíà ñõåìà)"
IDS_BROWSE_FILTER "Cursors (*.ani, *.cur)\0*.ani;*.cur\0Animated Cursors
(*.ani)\0*.ani\0Static Cursors (*.cur)\0*.cur\0All Files\0*.*\0\0"
IDS_BROWSE_TITLE "Browse"
+ IDS_REMOVE_TITLE "Confirm Scheme Removal"
+ IDS_REMOVE_TEXT "Are you sure you want to remove the cursor scheme
'%s'?"
+ IDS_OVERWRITE_TITLE "Confirm Cursor Scheme Overwrite"
+ IDS_OVERWRITE_TEXT "The cursor scheme name you chose is already in use. Do you
want to overwrite the existing cursor scheme?"
END
Modified: trunk/reactos/dll/cpl/main/mouse.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/mouse.c?rev=2…
==============================================================================
--- trunk/reactos/dll/cpl/main/mouse.c (original)
+++ trunk/reactos/dll/cpl/main/mouse.c Sun Apr 22 21:55:11 2007
@@ -568,6 +568,9 @@
DeleteUserCursorScheme(HWND hwndDlg)
{
TCHAR szSchemeName[MAX_PATH];
+ TCHAR szTitle[128];
+ TCHAR szRawText[256];
+ TCHAR szText[256];
HWND hDlgCtrl;
HKEY hCuKey;
HKEY hCuCursorKey;
@@ -581,6 +584,15 @@
SendMessage(hDlgCtrl, CB_GETLBTEXT, nSel, (LPARAM)szSchemeName);
+ LoadString(hApplet, IDS_REMOVE_TITLE, szTitle, 128);
+ LoadString(hApplet, IDS_REMOVE_TEXT, szRawText, 256);
+
+ _stprintf(szText, szRawText, szSchemeName);
+
+ /* Confirm scheme removal */
+ if (MessageBox(hwndDlg, szText, szTitle, MB_YESNO | MB_ICONQUESTION) == IDNO)
+ return TRUE;
+
if (RegOpenCurrentUser(KEY_READ | KEY_SET_VALUE, &hCuKey) != ERROR_SUCCESS)
return FALSE;
@@ -646,12 +658,18 @@
{
TCHAR szSystemScheme[MAX_PATH];
TCHAR szSchemeName[MAX_PATH];
+ TCHAR szNewSchemeName[MAX_PATH];
+ TCHAR szTitle[128];
+ TCHAR szText[256];
INT nSel;
INT index, i, nLength;
LPTSTR lpSchemeData;
HKEY hCuKey;
HKEY hCuCursorKey;
LONG lResult = ERROR_SUCCESS;
+ BOOL bSchemeExists;
+
+ LoadString(hApplet, IDS_SYSTEM_SCHEME, szSystemScheme, MAX_PATH);
nSel = SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETCURSEL, 0, 0);
if (nSel == CB_ERR)
@@ -663,55 +681,83 @@
}
else
{
- SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETLBTEXT, nSel,
(LPARAM)szSchemeName);
-
- LoadString(hApplet, IDS_SYSTEM_SCHEME, szSystemScheme, MAX_PATH);
-
- if (_tcsstr(szSchemeName, szSystemScheme))
+ SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETLBTEXT, nSel,
(LPARAM)szNewSchemeName);
+
+ if (_tcsstr(szNewSchemeName, szSystemScheme))
{
- szSchemeName[_tcslen(szSchemeName) - _tcslen(szSystemScheme) - 1] = 0;
+ szNewSchemeName[_tcslen(szNewSchemeName) - _tcslen(szSystemScheme) - 1] = 0;
}
}
- if (DialogBoxParam(hApplet, MAKEINTRESOURCE(IDD_CURSOR_SCHEME_SAVEAS),
- hwndDlg, SaveSchemeProc, (LPARAM)szSchemeName))
- {
- /* Save the cursor scheme */
- nLength = 0;
- for (index = IDS_ARROW, i = 0; index <= IDS_HAND; index++, i++)
+ /* Ask for a name for the new cursor scheme */
+ if (!DialogBoxParam(hApplet, MAKEINTRESOURCE(IDD_CURSOR_SCHEME_SAVEAS),
+ hwndDlg, SaveSchemeProc, (LPARAM)szNewSchemeName))
+ return TRUE;
+
+ /* Check all non-system schemes for the new name */
+ nSel = SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETCOUNT, 0, 0);
+ if (nSel == CB_ERR)
+ return FALSE;
+
+ bSchemeExists = FALSE;
+ for (i = 0; i < nSel; i++)
+ {
+ SendDlgItemMessage(hwndDlg, IDC_COMBO_CURSOR_SCHEME, CB_GETLBTEXT, i,
(LPARAM)szSchemeName);
+ if (_tcsstr(szSchemeName, szSystemScheme) == NULL)
{
- if (i > 0)
- nLength++;
- nLength += _tcslen(g_CursorData[i].szCursorPath);
+ if (_tcscmp(szSchemeName, szNewSchemeName) == 0)
+ {
+ bSchemeExists = TRUE;
+ break;
+ }
}
- nLength++;
-
- lpSchemeData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nLength *
sizeof(TCHAR));
-
- for (index = IDS_ARROW, i = 0; index <= IDS_HAND; index++, i++)
- {
- if (i > 0)
- _tcscat(lpSchemeData, _T(","));
- _tcscat(lpSchemeData, g_CursorData[i].szCursorPath);
- }
-
- if (RegOpenCurrentUser(KEY_READ | KEY_SET_VALUE, &hCuKey) != ERROR_SUCCESS)
- return FALSE;
-
- if (RegOpenKeyEx(hCuKey, _T("Control Panel\\Cursors\\Schemes"), 0,
KEY_READ | KEY_SET_VALUE, &hCuCursorKey) != ERROR_SUCCESS)
- {
- RegCloseKey(hCuKey);
- return FALSE;
- }
-
- lResult = RegSetValueEx(hCuCursorKey, szSchemeName, 0, REG_EXPAND_SZ,
- (LPBYTE)lpSchemeData, nLength * sizeof(TCHAR));
-
- RegCloseKey(hCuCursorKey);
+ }
+
+ if (bSchemeExists)
+ {
+ LoadString(hApplet, IDS_OVERWRITE_TITLE, szTitle, 128);
+ LoadString(hApplet, IDS_OVERWRITE_TEXT, szText, 256);
+
+ /* Confirm scheme overwrite */
+ if (MessageBox(hwndDlg, szText, szTitle, MB_YESNO | MB_ICONQUESTION) == IDNO)
+ return TRUE;
+ }
+
+ /* Save the cursor scheme */
+ nLength = 0;
+ for (index = IDS_ARROW, i = 0; index <= IDS_HAND; index++, i++)
+ {
+ if (i > 0)
+ nLength++;
+ nLength += _tcslen(g_CursorData[i].szCursorPath);
+ }
+ nLength++;
+
+ lpSchemeData = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, nLength *
sizeof(TCHAR));
+
+ for (index = IDS_ARROW, i = 0; index <= IDS_HAND; index++, i++)
+ {
+ if (i > 0)
+ _tcscat(lpSchemeData, _T(","));
+ _tcscat(lpSchemeData, g_CursorData[i].szCursorPath);
+ }
+
+ if (RegOpenCurrentUser(KEY_READ | KEY_SET_VALUE, &hCuKey) != ERROR_SUCCESS)
+ return FALSE;
+
+ if (RegOpenKeyEx(hCuKey, _T("Control Panel\\Cursors\\Schemes"), 0, KEY_READ
| KEY_SET_VALUE, &hCuCursorKey) != ERROR_SUCCESS)
+ {
RegCloseKey(hCuKey);
-
- HeapFree(GetProcessHeap(), 0, lpSchemeData);
- }
+ return FALSE;
+ }
+
+ lResult = RegSetValueEx(hCuCursorKey, szNewSchemeName, 0, REG_EXPAND_SZ,
+ (LPBYTE)lpSchemeData, nLength * sizeof(TCHAR));
+
+ RegCloseKey(hCuCursorKey);
+ RegCloseKey(hCuKey);
+
+ HeapFree(GetProcessHeap(), 0, lpSchemeData);
return (lResult == ERROR_SUCCESS);
}
Modified: trunk/reactos/dll/cpl/main/resource.h
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/cpl/main/resource.h?re…
==============================================================================
--- trunk/reactos/dll/cpl/main/resource.h (original)
+++ trunk/reactos/dll/cpl/main/resource.h Sun Apr 22 21:55:11 2007
@@ -44,7 +44,10 @@
#define IDS_SYSTEM_SCHEME 1032
#define IDS_BROWSE_FILTER 1033
#define IDS_BROWSE_TITLE 1034
-
+#define IDS_REMOVE_TITLE 1035
+#define IDS_REMOVE_TEXT 1036
+#define IDS_OVERWRITE_TITLE 1037
+#define IDS_OVERWRITE_TEXT 1038
#define IDC_SWAP_MOUSE_BUTTONS 2000
#define IDC_SLIDER_DOUBLE_CLICK_SPEED 2001