Commit 989988a5 authored by Eric Pouech's avatar Eric Pouech Committed by Alexandre Julliard

winedbg: Use share attributes for opening command file.

(this fixes --command option when winedbg is relaunched in wow64 case). Signed-off-by: 's avatarEric Pouech <epouech@codeweavers.com>
parent 063a377d
......@@ -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)
{
......
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