imagehlp/tests: Run tests again on Win95.
This commit is contained in:
parent
7790280c5b
commit
f976907d4f
|
@ -121,12 +121,18 @@ static BOOL copy_dll_file(void)
|
|||
|
||||
static DWORD get_file_size(void)
|
||||
{
|
||||
WIN32_FILE_ATTRIBUTE_DATA info;
|
||||
HANDLE file;
|
||||
DWORD filesize = 0;
|
||||
|
||||
if (GetFileAttributesEx(test_dll_path, GetFileExInfoStandard, &info))
|
||||
file = CreateFileA(test_dll_path, GENERIC_READ, FILE_SHARE_READ, NULL,
|
||||
OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
|
||||
if (file == INVALID_HANDLE_VALUE)
|
||||
return 0;
|
||||
|
||||
return info.nFileSizeLow;
|
||||
filesize = GetFileSize(file, NULL);
|
||||
CloseHandle(file);
|
||||
|
||||
return filesize;
|
||||
}
|
||||
|
||||
static void test_add_certificate(char *cert_data, int len)
|
||||
|
|
Loading…
Reference in New Issue