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
1bd0690e
Commit
1bd0690e
authored
Mar 03, 2009
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstaller: Only load error strings when needed.
parent
52e415f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
7 deletions
+6
-7
main.c
programs/uninstaller/main.c
+6
-7
No files found.
programs/uninstaller/main.c
View file @
1bd0690e
...
...
@@ -45,8 +45,6 @@ static unsigned int numentries = 0;
static
int
list_need_update
=
1
;
static
int
oldsel
=
-
1
;
static
WCHAR
*
sFilter
;
static
WCHAR
sAppName
[
MAX_STRING_LEN
];
static
WCHAR
sUninstallFailed
[
MAX_STRING_LEN
];
static
int
FetchUninstallInformation
(
void
);
static
void
UninstallProgram
(
void
);
...
...
@@ -123,7 +121,6 @@ static void RemoveSpecificProgram(WCHAR *nameW)
int
wmain
(
int
argc
,
WCHAR
*
argv
[])
{
LPCWSTR
token
=
NULL
;
HINSTANCE
hInst
=
GetModuleHandleW
(
0
);
static
const
WCHAR
listW
[]
=
{
'-'
,
'-'
,
'l'
,
'i'
,
's'
,
't'
,
0
};
static
const
WCHAR
removeW
[]
=
{
'-'
,
'-'
,
'r'
,
'e'
,
'm'
,
'o'
,
'v'
,
'e'
,
0
};
int
i
=
1
;
...
...
@@ -156,10 +153,6 @@ int wmain(int argc, WCHAR *argv[])
}
}
/* Load MessageBox's strings */
LoadStringW
(
hInst
,
IDS_APPNAME
,
sAppName
,
sizeof
(
sAppName
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_UNINSTALLFAILED
,
sUninstallFailed
,
sizeof
(
sUninstallFailed
)
/
sizeof
(
WCHAR
));
/* Start the GUI control panel */
Control_RunDLL
(
GetDesktopWindow
(),
0
,
"appwiz.cpl"
,
SW_SHOW
);
return
1
;
...
...
@@ -267,6 +260,12 @@ static void UninstallProgram(void)
}
else
{
WCHAR
sAppName
[
MAX_STRING_LEN
];
WCHAR
sUninstallFailed
[
MAX_STRING_LEN
];
HINSTANCE
hInst
=
GetModuleHandleW
(
0
);
LoadStringW
(
hInst
,
IDS_APPNAME
,
sAppName
,
sizeof
(
sAppName
)
/
sizeof
(
WCHAR
));
LoadStringW
(
hInst
,
IDS_UNINSTALLFAILED
,
sUninstallFailed
,
sizeof
(
sUninstallFailed
)
/
sizeof
(
WCHAR
));
wsprintfW
(
errormsg
,
sUninstallFailed
,
entries
[
i
].
command
);
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