Module: wine Branch: master Commit: f333c4a210e25bbb8af2adeeae0dbe006354519b URL: https://source.winehq.org/git/wine.git/?a=commit;h=f333c4a210e25bbb8af2adeea...
Author: Alex Henrie alexhenrie24@gmail.com Date: Sun Nov 11 20:51:58 2018 -0700
dbghelp: Turn variable 'code' into a static constant.
Signed-off-by: Alex Henrie alexhenrie24@gmail.com Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/dbghelp/minidump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/dbghelp/minidump.c b/dlls/dbghelp/minidump.c index 1a5dca9..975bb45 100644 --- a/dlls/dbghelp/minidump.c +++ b/dlls/dbghelp/minidump.c @@ -670,7 +670,7 @@ static unsigned dump_system_info(struct dump_context* dc) /* write Wine specific system information just behind the structure, and before any string */ if (wine_extra) { - char code[] = {'W','I','N','E'}; + static const char code[] = {'W','I','N','E'};
WriteFile(dc->hFile, code, 4, &written, NULL); /* number of sub-info, so that we can extend structure if needed */