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
32714ee4
Commit
32714ee4
authored
Mar 29, 2016
by
Hugh McMaster
Committed by
Alexandre Julliard
Mar 29, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Display REG_DWORD_BIG_ENDIAN values.
Signed-off-by:
Hugh McMaster
<
hugh.mcmaster@outlook.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
11fcc61b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
listview.c
programs/regedit/listview.c
+7
-2
No files found.
programs/regedit/listview.c
View file @
32714ee4
...
...
@@ -20,6 +20,7 @@
*/
#include <windows.h>
#include <winternl.h>
#include <commctrl.h>
#include <stdlib.h>
#include <stdio.h>
...
...
@@ -167,10 +168,14 @@ static void AddEntryToList(HWND hwndLV, LPWSTR Name, DWORD dwValType,
ListView_SetItemTextW
(
hwndLV
,
index
,
2
,
g_szValueNotSet
);
}
break
;
case
REG_DWORD
:
{
case
REG_DWORD
:
case
REG_DWORD_BIG_ENDIAN
:
{
DWORD
value
=
*
(
DWORD
*
)
ValBuf
;
WCHAR
buf
[
64
];
WCHAR
format
[]
=
{
'0'
,
'x'
,
'%'
,
'0'
,
'8'
,
'x'
,
' '
,
'('
,
'%'
,
'u'
,
')'
,
0
};
wsprintfW
(
buf
,
format
,
*
(
DWORD
*
)
ValBuf
,
*
(
DWORD
*
)
ValBuf
);
if
(
dwValType
==
REG_DWORD_BIG_ENDIAN
)
value
=
RtlUlongByteSwap
(
value
);
wsprintfW
(
buf
,
format
,
value
,
value
);
ListView_SetItemTextW
(
hwndLV
,
index
,
2
,
buf
);
}
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