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
dbf2426b
Commit
dbf2426b
authored
Jul 24, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Aug 14, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstaller: Use the ARRAY_SIZE() macro.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
effac73e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
main.c
programs/uninstaller/main.c
+3
-3
No files found.
programs/uninstaller/main.c
View file @
dbf2426b
...
@@ -102,7 +102,7 @@ static void WINAPIV output_message(unsigned int id, ...)
...
@@ -102,7 +102,7 @@ static void WINAPIV output_message(unsigned int id, ...)
WCHAR
fmt
[
1024
];
WCHAR
fmt
[
1024
];
__ms_va_list
va_args
;
__ms_va_list
va_args
;
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
sizeof
(
fmt
)
/
sizeof
(
fmt
[
0
]
)))
if
(
!
LoadStringW
(
GetModuleHandleW
(
NULL
),
id
,
fmt
,
ARRAY_SIZE
(
fmt
)))
{
{
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
WINE_FIXME
(
"LoadString failed with %d
\n
"
,
GetLastError
());
return
;
return
;
...
@@ -342,8 +342,8 @@ static void UninstallProgram(void)
...
@@ -342,8 +342,8 @@ static void UninstallProgram(void)
WCHAR
sUninstallFailed
[
MAX_STRING_LEN
];
WCHAR
sUninstallFailed
[
MAX_STRING_LEN
];
HINSTANCE
hInst
=
GetModuleHandleW
(
0
);
HINSTANCE
hInst
=
GetModuleHandleW
(
0
);
LoadStringW
(
hInst
,
IDS_APPNAME
,
sAppName
,
sizeof
(
sAppName
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_APPNAME
,
sAppName
,
ARRAY_SIZE
(
sAppName
));
LoadStringW
(
hInst
,
IDS_UNINSTALLFAILED
,
sUninstallFailed
,
sizeof
(
sUninstallFailed
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_UNINSTALLFAILED
,
sUninstallFailed
,
ARRAY_SIZE
(
sUninstallFailed
));
wsprintfW
(
errormsg
,
sUninstallFailed
,
entries
[
i
].
command
);
wsprintfW
(
errormsg
,
sUninstallFailed
,
entries
[
i
].
command
);
if
(
MessageBoxW
(
0
,
errormsg
,
sAppName
,
MB_YESNO
|
MB_ICONQUESTION
)
==
IDYES
)
if
(
MessageBoxW
(
0
,
errormsg
,
sAppName
,
MB_YESNO
|
MB_ICONQUESTION
)
==
IDYES
)
{
{
...
...
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