imagehlp/tests: Run tests again on Win95.

This commit is contained in:
Paul Vriens 2009-12-10 11:41:48 +01:00 committed by Alexandre Julliard
parent 7790280c5b
commit f976907d4f
1 changed files with 9 additions and 3 deletions

View File

@ -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)