Commit f976907d authored by Paul Vriens's avatar Paul Vriens Committed by Alexandre Julliard

imagehlp/tests: Run tests again on Win95.

parent 7790280c
...@@ -121,12 +121,18 @@ static BOOL copy_dll_file(void) ...@@ -121,12 +121,18 @@ static BOOL copy_dll_file(void)
static DWORD get_file_size(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 0;
return info.nFileSizeLow; filesize = GetFileSize(file, NULL);
CloseHandle(file);
return filesize;
} }
static void test_add_certificate(char *cert_data, int len) static void test_add_certificate(char *cert_data, int len)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment