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
f158558d
Commit
f158558d
authored
Feb 04, 2022
by
Eric Pouech
Committed by
Alexandre Julliard
Feb 04, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
regedit: Enable compilation with long types.
Signed-off-by:
Eric Pouech
<
eric.pouech@gmail.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
0b4a16fb
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
7 deletions
+6
-7
Makefile.in
programs/regedit/Makefile.in
+0
-1
edit.c
programs/regedit/edit.c
+1
-1
framewnd.c
programs/regedit/framewnd.c
+1
-1
main.c
programs/regedit/main.c
+1
-1
regedit.c
programs/regedit/regedit.c
+3
-3
No files found.
programs/regedit/Makefile.in
View file @
f158558d
EXTRADEFS
=
-DWINE_NO_LONG_TYPES
MODULE
=
regedit.exe
IMPORTS
=
advapi32
DELAYIMPORTS
=
shlwapi shell32 comdlg32 comctl32 user32 gdi32
...
...
programs/regedit/edit.c
View file @
f158558d
...
...
@@ -288,7 +288,7 @@ BOOL ModifyValue(HWND hwnd, HKEY hKeyRoot, LPCWSTR keyPath, LPCWSTR valueName)
if
(
DialogBoxW
(
0
,
MAKEINTRESOURCEW
(
IDD_EDIT_DWORD
),
hwnd
,
modify_dlgproc
)
==
IDOK
)
{
DWORD
val
;
CHAR
*
valueA
=
GetMultiByteString
(
stringValueData
);
if
(
sscanf
(
valueA
,
isDecimal
?
"%
u"
:
"%
x"
,
&
val
))
{
if
(
sscanf
(
valueA
,
isDecimal
?
"%
lu"
:
"%l
x"
,
&
val
))
{
lRet
=
RegSetValueExW
(
hKey
,
valueName
,
0
,
type
,
(
BYTE
*
)
&
val
,
sizeof
(
val
));
if
(
lRet
==
ERROR_SUCCESS
)
result
=
TRUE
;
else
error_code_messagebox
(
hwnd
,
IDS_SET_VALUE_FAILED
);
...
...
programs/regedit/framewnd.c
View file @
f158558d
...
...
@@ -220,7 +220,7 @@ static int add_favourite_key_items(HMENU hMenu, HWND hList)
&
max_value_len
,
NULL
,
NULL
,
NULL
);
if
(
rc
!=
ERROR_SUCCESS
)
{
ERR
(
"RegQueryInfoKey failed: %d
\n
"
,
rc
);
ERR
(
"RegQueryInfoKey failed: %
l
d
\n
"
,
rc
);
goto
exit
;
}
...
...
programs/regedit/main.c
View file @
f158558d
...
...
@@ -167,7 +167,7 @@ int WINAPI wWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPWSTR lpCmdLi
GetExitCodeProcess
(
pi
.
hProcess
,
&
exit_code
);
ExitProcess
(
exit_code
);
}
else
WINE_ERR
(
"failed to restart 64-bit %s, err %d
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
()
);
else
WINE_ERR
(
"failed to restart 64-bit %s, err %
l
d
\n
"
,
wine_dbgstr_w
(
filename
),
GetLastError
()
);
Wow64RevertWow64FsRedirection
(
redir
);
}
...
...
programs/regedit/regedit.c
View file @
f158558d
...
...
@@ -59,7 +59,7 @@ static void output_formatstring(const WCHAR *fmt, va_list va_args)
fmt
,
0
,
0
,
(
WCHAR
*
)
&
str
,
0
,
&
va_args
);
if
(
len
==
0
&&
GetLastError
()
!=
ERROR_NO_WORK_DONE
)
{
WINE_FIXME
(
"Could not format string: le=%u, fmt=%s
\n
"
,
GetLastError
(),
wine_dbgstr_w
(
fmt
));
WINE_FIXME
(
"Could not format string: le=%
l
u, fmt=%s
\n
"
,
GetLastError
(),
wine_dbgstr_w
(
fmt
));
return
;
}
output_writeconsole
(
str
,
len
);
...
...
@@ -73,7 +73,7 @@ void WINAPIV output_message(unsigned int id, ...)
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
ARRAY_SIZE
(
fmt
)))
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
WINE_FIXME
(
"LoadString failed with %
l
d
\n
"
,
GetLastError
());
return
;
}
va_start
(
va_args
,
id
);
...
...
@@ -88,7 +88,7 @@ void WINAPIV error_exit(unsigned int id, ...)
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
ARRAY_SIZE
(
fmt
)))
{
WINE_FIXME
(
"LoadString failed with %u
\n
"
,
GetLastError
());
WINE_FIXME
(
"LoadString failed with %
l
u
\n
"
,
GetLastError
());
return
;
}
va_start
(
va_args
,
id
);
...
...
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