X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Finspect_apps.c;h=dad5d0bb5c0f1ad7fd7043a6da76954106efd2a7;hb=01cdc3d593146a60e7c7e26b91b96625cda0ba1b;hp=8ce09ab7019f7e682b6d729d408b11860bebffc4;hpb=0c1369f78b4a2276dcd004eb06cccf5c32e7f2da;p=libguestfs.git diff --git a/src/inspect_apps.c b/src/inspect_apps.c index 8ce09ab..dad5d0b 100644 --- a/src/inspect_apps.c +++ b/src/inspect_apps.c @@ -287,11 +287,11 @@ list_applications_windows (guestfs_h *g, struct inspect_fs *fs) 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;