git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
daemon: Make sysroot_len be size_t instead of int.
[libguestfs.git]
/
src
/
inspect_apps.c
diff --git
a/src/inspect_apps.c
b/src/inspect_apps.c
index
d7634d8
..
a41c46c
100644
(file)
--- a/
src/inspect_apps.c
+++ b/
src/inspect_apps.c
@@
-430,11
+430,11
@@
list_applications_windows (guestfs_h *g, struct inspect_fs *fs)
fs->windows_systemroot);
char *software_path = guestfs___case_sensitive_path_silently (g, software);
fs->windows_systemroot);
char *software_path = guestfs___case_sensitive_path_silently (g, software);
- if (!software_path)
- /*
If the software hive doesn't exist, just accept that we cannot
- * list windows apps.
- */
- return 0;
+ if (!software_path)
{
+ /*
Missing software hive is a problem. */
+ error (g, "no HKLM\\SOFTWARE hive found in the guest");
+ return NULL;
+ }
struct guestfs_application_list *ret = NULL;
hive_h *h = NULL;
struct guestfs_application_list *ret = NULL;
hive_h *h = NULL;