From f2e06ce575c5e58435d1c966caf04f040ec6ce91 Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Mon, 3 Aug 2009 13:48:16 -0300 Subject: Fix Virtual Machine detection --- hardinfo2/computer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hardinfo2') diff --git a/hardinfo2/computer.c b/hardinfo2/computer.c index 5c455f74..2f927b27 100644 --- a/hardinfo2/computer.c +++ b/hardinfo2/computer.c @@ -317,7 +317,7 @@ gchar *computer_get_virtualization() FILE *file; if ((file = fopen(files[i], "r"))) { - while (fgets(buffer, 512, file)) { + while (!found && fgets(buffer, 512, file)) { for (j = 0; vm_types[j+1].str; j++) { if (strstr(buffer, vm_types[j].str)) { found = TRUE; -- cgit v1.2.3