[PATCH 1/2] cmd: Use terminated strings in WCMD_ReadAndParseLine()

Gijs Vermeulen gijsvrm at gmail.com
Mon Apr 12 03:03:54 CDT 2021


Op ma 12 apr. 2021 om 08:17 schreef Hugh McMaster <hugh.mcmaster at outlook.com
>:

> This is very unusual. Why not just use lstrlenW(...)?
>

I just followed these examples[1][2], but I can change it if necessary.

You should also look at calculating the string length within
> WCMD_keyword_ws_found(), instead of passing the length as an argument.
> But do this as a separate patch.
>

Will do.

[1]
https://source.winehq.org/git/wine.git/commit/76ee089aade14ddf833c4ef7c382c8d413664251
[2]
https://source.winehq.org/git/wine.git/commit/762f51cf93b6efca0defb2929f3278abb034dae7
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20210412/ee0c21ab/attachment.htm>


More information about the wine-devel mailing list