Module: wine Branch: master Commit: 989988a5aed6dc54f5f4539d73931f73a0ca8201 URL: https://gitlab.winehq.org/wine/wine/-/commit/989988a5aed6dc54f5f4539d73931f7...
Author: Eric Pouech epouech@codeweavers.com Date: Fri Feb 16 10:57:18 2024 +0100
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
---
programs/winedbg/winedbg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/programs/winedbg/winedbg.c b/programs/winedbg/winedbg.c index 92fa77429f6..39ce6cbf8a9 100644 --- a/programs/winedbg/winedbg.c +++ b/programs/winedbg/winedbg.c @@ -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) {