6 Feb
2025
6 Feb
'25
12:35 p.m.
On Wed Feb 5 18:41:20 2025 +0000, Michael Stefaniuc wrote:
No `magic` is always initialized to all 0 on each itteration of the for loop: ``` for (i = 0;; i++) { BYTE magic[4] = {0}, last_status = 0; ``` A short read won't change that. Ah, right Rémi said to remove this initialization and I forgot... So either remove this init and keep the `read < sizeof(magic)` check, or remove that and keep this init. I don't have a preference here.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/7230#note_93886