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
b6a9109c
Commit
b6a9109c
authored
Oct 10, 2006
by
H. Verbeet
Committed by
Alexandre Julliard
Oct 11, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Format warning fixes.
parent
5aafea48
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
regproc.c
programs/regedit/regproc.c
+6
-6
No files found.
programs/regedit/regproc.c
View file @
b6a9109c
...
@@ -170,7 +170,7 @@ DWORD convertHexToDWord(char *str, BYTE *buf)
...
@@ -170,7 +170,7 @@ DWORD convertHexToDWord(char *str, BYTE *buf)
memcpy
(
xbuf
,
str
,
8
);
memcpy
(
xbuf
,
str
,
8
);
xbuf
[
8
]
=
'\0'
;
xbuf
[
8
]
=
'\0'
;
sscanf
(
xbuf
,
"%08
l
x"
,
&
dw
);
sscanf
(
xbuf
,
"%08x"
,
&
dw
);
memcpy
(
buf
,
&
dw
,
sizeof
(
DWORD
));
memcpy
(
buf
,
&
dw
,
sizeof
(
DWORD
));
return
sizeof
(
DWORD
);
return
sizeof
(
DWORD
);
}
}
...
@@ -218,7 +218,7 @@ char* convertHexToDWORDStr(BYTE *buf, ULONG bufLen)
...
@@ -218,7 +218,7 @@ char* convertHexToDWORDStr(BYTE *buf, ULONG bufLen)
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
bufLen
*
2
)
+
1
);
str
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
bufLen
*
2
)
+
1
);
memcpy
(
&
dw
,
buf
,
sizeof
(
DWORD
));
memcpy
(
&
dw
,
buf
,
sizeof
(
DWORD
));
sprintf
(
str
,
"%08
l
x"
,
dw
);
sprintf
(
str
,
"%08x"
,
dw
);
/* Get rid of the last comma */
/* Get rid of the last comma */
return
str
;
return
str
;
...
@@ -1057,7 +1057,7 @@ static void REGPROC_print_error(void)
...
@@ -1057,7 +1057,7 @@ static void REGPROC_print_error(void)
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
status
=
FormatMessage
(
FORMAT_MESSAGE_ALLOCATE_BUFFER
|
FORMAT_MESSAGE_FROM_SYSTEM
,
NULL
,
error_code
,
0
,
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
);
NULL
,
error_code
,
0
,
(
LPTSTR
)
&
lpMsgBuf
,
0
,
NULL
);
if
(
!
status
)
{
if
(
!
status
)
{
fprintf
(
stderr
,
"%s: Cannot display message for error %
ld, status %l
d
\n
"
,
fprintf
(
stderr
,
"%s: Cannot display message for error %
d, status %
d
\n
"
,
getAppName
(),
error_code
,
GetLastError
());
getAppName
(),
error_code
,
GetLastError
());
exit
(
1
);
exit
(
1
);
}
}
...
@@ -1203,11 +1203,11 @@ static void export_hkey(FILE *file, HKEY key,
...
@@ -1203,11 +1203,11 @@ static void export_hkey(FILE *file, HKEY key,
break
;
break
;
case
REG_DWORD
:
case
REG_DWORD
:
fprintf
(
file
,
"dword:%08
l
x
\n
"
,
*
((
DWORD
*
)
*
val_buf
));
fprintf
(
file
,
"dword:%08x
\n
"
,
*
((
DWORD
*
)
*
val_buf
));
break
;
break
;
default:
default:
fprintf
(
stderr
,
"%s: warning - unsupported registry format '%
l
d', "
fprintf
(
stderr
,
"%s: warning - unsupported registry format '%d', "
"treat as binary
\n
"
,
"treat as binary
\n
"
,
getAppName
(),
value_type
);
getAppName
(),
value_type
);
fprintf
(
stderr
,
"key name:
\"
%s
\"\n
"
,
*
reg_key_name_buf
);
fprintf
(
stderr
,
"key name:
\"
%s
\"\n
"
,
*
reg_key_name_buf
);
...
@@ -1225,7 +1225,7 @@ static void export_hkey(FILE *file, HKEY key,
...
@@ -1225,7 +1225,7 @@ static void export_hkey(FILE *file, HKEY key,
hex_prefix
=
"hex:"
;
hex_prefix
=
"hex:"
;
}
else
{
}
else
{
hex_prefix
=
buf
;
hex_prefix
=
buf
;
sprintf
(
buf
,
"hex(%
l
d):"
,
value_type
);
sprintf
(
buf
,
"hex(%d):"
,
value_type
);
}
}
/* position of where the next character will be printed */
/* position of where the next character will be printed */
...
...
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