winetest: Show more detailed version error information.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2021-03-15 19:28:48 +01:00 committed by Alexandre Julliard
parent 21e9d51b36
commit 18c12c6dbb
1 changed files with 4 additions and 4 deletions

View File

@ -129,14 +129,14 @@ static char * get_file_version(char * file_name)
pFixedVersionInfo->dwFileVersionLS >> 16,
pFixedVersionInfo->dwFileVersionLS & 0xffff);
} else
sprintf(version, "version not available");
sprintf(version, "version not found");
} else
sprintf(version, "unknown");
sprintf(version, "version error %u", GetLastError());
heap_free(data);
} else
sprintf(version, "failed");
sprintf(version, "version error %u", ERROR_OUTOFMEMORY);
} else
sprintf(version, "version not available");
sprintf(version, "version not present");
return version;
}