[PATCH v4 0/1] MR134: ntdll: Don't hard-code the battery and AC adapter names on Linux

Alex Henrie (@alexhenrie) wine at gitlab.winehq.org
Wed Jun 15 21:36:49 CDT 2022


On Wed Jun 15 19:57:52 2022 +0000, Alexandre Julliard wrote:
> snprintf doesn't return -1 on overflow (which is the only failure you
> care about here).
Thanks for pointing that out. I have corrected the overflow checks, and I will be careful to avoid similar mistakes in the future.

-- 
https://gitlab.winehq.org/wine/wine/-/merge_requests/134#note_2171



More information about the wine-devel mailing list