winedbg: Use share attributes for opening command file.
(this fixes --command option when winedbg is relaunched in wow64 case). Signed-off-by: Eric Pouech <epouech@codeweavers.com>
This commit is contained in:
parent
063a377df4
commit
989988a5ae
1 changed files with 1 additions and 1 deletions
|
@ -763,7 +763,7 @@ int main(int argc, char** argv)
|
|||
{
|
||||
argc--; argv++;
|
||||
filename = argv[0];
|
||||
hFile = CreateFileA(argv[0], GENERIC_READ|DELETE, 0,
|
||||
hFile = CreateFileA(argv[0], GENERIC_READ|DELETE, FILE_SHARE_READ|FILE_SHARE_DELETE,
|
||||
NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, 0);
|
||||
if (hFile == INVALID_HANDLE_VALUE)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue