Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
e5685804
Commit
e5685804
authored
May 13, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Fix editing and exporting of zero-size strings.
parent
520d1bc5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
edit.c
programs/regedit/edit.c
+2
-2
regproc.c
programs/regedit/regproc.c
+1
-1
No files found.
programs/regedit/edit.c
View file @
e5685804
...
...
@@ -224,7 +224,7 @@ static LPTSTR read_value(HWND hwnd, HKEY hKey, LPCTSTR valueName, DWORD *lpType,
goto
done
;
}
if
(
*
lpType
==
REG_DWORD
)
valueDataLen
=
sizeof
(
DWORD
);
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
valueDataLen
)))
{
if
(
!
(
buffer
=
HeapAlloc
(
GetProcessHeap
(),
0
,
valueDataLen
+
1
)))
{
error
(
hwnd
,
IDS_TOO_BIG_VALUE
,
valueDataLen
);
goto
done
;
}
...
...
@@ -233,7 +233,7 @@ static LPTSTR read_value(HWND hwnd, HKEY hKey, LPCTSTR valueName, DWORD *lpType,
error
(
hwnd
,
IDS_BAD_VALUE
,
valueName
);
goto
done
;
}
buffer
[
valueDataLen
]
=
0
;
if
(
len
)
*
len
=
valueDataLen
;
return
buffer
;
...
...
programs/regedit/regproc.c
View file @
e5685804
...
...
@@ -764,7 +764,7 @@ static void export_hkey(FILE *file, HKEY key,
case
REG_SZ
:
case
REG_EXPAND_SZ
:
fputs
(
"
\"
"
,
file
);
REGPROC_export_string
(
file
,
(
char
*
)
*
val_buf
);
if
(
val_size1
)
REGPROC_export_string
(
file
,
(
char
*
)
*
val_buf
);
fputs
(
"
\"\n
"
,
file
);
break
;
...
...
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