From e3332128b0de2df9fcd2ab69b302f1d9ba43effb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Thu, 8 Jun 2000 01:00:16 +0000 Subject: [PATCH] Use FILE_SHARE_READ to open the file in GetBinaryTypeA. --- loader/module.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/loader/module.c b/loader/module.c index 0b324ba2a0e..a55837ae089 100644 --- a/loader/module.c +++ b/loader/module.c @@ -607,7 +607,7 @@ BOOL WINAPI GetBinaryTypeA( LPCSTR lpApplicationName, LPDWORD lpBinaryType ) /* Open the file indicated by lpApplicationName for reading. */ - hfile = CreateFileA( lpApplicationName, GENERIC_READ, 0, + hfile = CreateFileA( lpApplicationName, GENERIC_READ, FILE_SHARE_READ, NULL, OPEN_EXISTING, 0, -1 ); if ( hfile == INVALID_HANDLE_VALUE ) return FALSE;