X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=src%2Finspect_apps.c;fp=src%2Finspect_apps.c;h=a41c46c46c682371606e60955a13bfbbb1c49848;hp=d7634d8102606a65bf6017fbbfae785b497e7226;hb=782f3a36469ca396dbf998ea82af2699153be3ed;hpb=2b0ca7e7b8d369a42a51b1feec72ae8f17257c78 diff --git a/src/inspect_apps.c b/src/inspect_apps.c index d7634d8..a41c46c 100644 --- 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); - 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;