From: Nikolay Sivov nsivov@codeweavers.com
Signed-off-by: Nikolay Sivov nsivov@codeweavers.com --- dlls/shell32/shell32_main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/dlls/shell32/shell32_main.c b/dlls/shell32/shell32_main.c index c739e1723f7..db35a593597 100644 --- a/dlls/shell32/shell32_main.c +++ b/dlls/shell32/shell32_main.c @@ -80,14 +80,14 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath) * Seek to the start of the file and read the header information. */
- SetFilePointer( hfile, 0, NULL, SEEK_SET ); + SetFilePointer( hfile, 0, NULL, FILE_BEGIN ); ReadFile( hfile, &mz_header, sizeof(mz_header), &len, NULL );
- SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET ); + SetFilePointer( hfile, mz_header.e_lfanew, NULL, FILE_BEGIN ); ReadFile( hfile, magic, sizeof(magic), &len, NULL ); if ( *(DWORD*)magic == IMAGE_NT_SIGNATURE ) { - SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET ); + SetFilePointer( hfile, mz_header.e_lfanew, NULL, FILE_BEGIN ); ReadFile( hfile, &nt, sizeof(nt), &len, NULL ); CloseHandle( hfile ); /* DLL files are not executable and should return 0 */ @@ -104,7 +104,7 @@ static DWORD shgfi_get_exe_type(LPCWSTR szFullPath) else if ( *(WORD*)magic == IMAGE_OS2_SIGNATURE ) { IMAGE_OS2_HEADER ne; - SetFilePointer( hfile, mz_header.e_lfanew, NULL, SEEK_SET ); + SetFilePointer( hfile, mz_header.e_lfanew, NULL, FILE_BEGIN ); ReadFile( hfile, &ne, sizeof(ne), &len, NULL ); CloseHandle( hfile ); if (ne.ne_exetyp == 2)