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
084458bc
Commit
084458bc
authored
Jul 25, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
uninstaller: Fail more gracefully when the registry key is missing.
parent
8cec3cf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
7 deletions
+3
-7
main.c
programs/uninstaller/main.c
+3
-7
No files found.
programs/uninstaller/main.c
View file @
084458bc
...
...
@@ -76,8 +76,7 @@ static void ListUninstallPrograms(void)
char
*
descr
;
char
*
key
;
if
(
!
FetchUninstallInformation
())
return
;
FetchUninstallInformation
();
for
(
i
=
0
;
i
<
numentries
;
i
++
)
{
...
...
@@ -100,8 +99,7 @@ static void RemoveSpecificProgram(WCHAR *nameW)
int
lenName
;
char
*
name
;
if
(
!
FetchUninstallInformation
())
return
;
FetchUninstallInformation
();
for
(
i
=
0
;
i
<
numentries
;
i
++
)
{
...
...
@@ -196,10 +194,7 @@ static int FetchUninstallInformation(void)
numentries
=
0
;
oldsel
=
-
1
;
if
(
RegOpenKeyExW
(
HKEY_LOCAL_MACHINE
,
PathUninstallW
,
0
,
KEY_READ
,
&
hkeyUninst
)
!=
ERROR_SUCCESS
)
{
MessageBoxW
(
0
,
sRegistryKeyNotAvailable
,
sAppName
,
MB_OK
);
return
0
;
}
if
(
!
entries
)
entries
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
uninst_entry
));
...
...
@@ -363,6 +358,7 @@ static void UpdateList(HWND hList)
prevsel
=
SendMessageW
(
hList
,
LB_GETCURSEL
,
0
,
0
);
if
(
!
(
FetchUninstallInformation
()))
{
MessageBoxW
(
0
,
sRegistryKeyNotAvailable
,
sAppName
,
MB_OK
);
PostQuitMessage
(
0
);
return
;
}
...
...
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