March 20, 2026
1:49 p.m.
Jacek Caban (@jacek) commented about dlls/vbscript/vbscript.c:
} error->character = code->source + loc - nl;
+ line_end = nl; + while(*line_end && *line_end != '\n' && *line_end != '\r') + line_end++; + error->source_line = SysAllocStringLen(nl, line_end - nl);
Maybe instead of storing another string in the object, which requires allocation, we could just store a reference to `vbcode_t` and get the line from there on demand. -- https://gitlab.winehq.org/wine/wine/-/merge_requests/10396#note_133023