Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
4b2756ba
Commit
4b2756ba
authored
Oct 05, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Oct 12, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Cast-qual warnings fix.
parent
9187951a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
edit.c
programs/regedit/edit.c
+7
-4
No files found.
programs/regedit/edit.c
View file @
4b2756ba
...
...
@@ -89,13 +89,13 @@ static void error_code_messagebox(HWND hwnd, DWORD error_code)
LPTSTR
lpMsgBuf
;
DWORD
status
;
TCHAR
title
[
256
];
static
const
TCHAR
fallback
[]
=
TEXT
(
"Error displaying error message.
\n
"
);
static
TCHAR
fallback
[]
=
TEXT
(
"Error displaying error message.
\n
"
);
if
(
!
LoadString
(
hInst
,
IDS_ERROR
,
title
,
COUNT_OF
(
title
)))
lstrcpy
(
title
,
TEXT
(
"Error"
));
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
lpMsgBuf
=
(
LPTSTR
)
fallback
;
lpMsgBuf
=
fallback
;
MessageBox
(
hwnd
,
lpMsgBuf
,
title
,
MB_OK
|
MB_ICONERROR
);
if
(
lpMsgBuf
!=
fallback
)
LocalFree
(
lpMsgBuf
);
...
...
@@ -481,9 +481,12 @@ BOOL RenameKey(HWND hwnd, HKEY hRootKey, LPCTSTR keyPath, LPCTSTR newName)
parentKey
=
hRootKey
;
srcSubKey
=
keyPath
;
}
else
{
LPTSTR
srcSubKey_copy
;
parentPath
=
strdup
(
keyPath
);
srcSubKey
=
strrchr
(
parentPath
,
'\\'
)
+
1
;
*
((
LPTSTR
)
srcSubKey
-
1
)
=
0
;
srcSubKey_copy
=
strrchr
(
parentPath
,
'\\'
);
*
srcSubKey_copy
=
0
;
srcSubKey
=
srcSubKey_copy
+
1
;
lRet
=
RegOpenKeyEx
(
hRootKey
,
parentPath
,
0
,
KEY_READ
|
KEY_CREATE_SUB_KEY
,
&
parentKey
);
if
(
lRet
!=
ERROR_SUCCESS
)
{
error_code_messagebox
(
hwnd
,
lRet
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment