X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Finspect.c;fp=src%2Finspect.c;h=370220b584f13778b95f0f7198e2112abe387394;hb=df4dce74a887e013a6aec51e241a90cfb7d3b36a;hp=900b6f41970046a77b31dda3d866929fe79c3b1f;hpb=ec64a418581adbc3c276fe41a1217e63b3ce6654;p=libguestfs.git diff --git a/src/inspect.c b/src/inspect.c index 900b6f4..370220b 100644 --- a/src/inspect.c +++ b/src/inspect.c @@ -2003,11 +2003,11 @@ list_applications_windows (guestfs_h *g, struct inspect_fs *fs) fs->windows_systemroot); char *software_path = case_sensitive_path_silently (g, software); - if (!software_path) - /* If the software hive doesn't exist, just accept that we cannot - * find product_name etc. - */ - 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 *apps = NULL, *ret = NULL; hive_h *h = NULL;