1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

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:
Eric Pouech 2024-02-16 10:57:18 +01:00 committed by Alexandre Julliard
parent 063a377df4
commit 989988a5ae

View file

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