25 Jan
2024
25 Jan
'24
2:50 p.m.
Aida JonikienÄ— (@DodoGTA) commented about dlls/iphlpapi/iphlpapi_main.c:
+ return ERROR_INVALID_PARAMETER; + + FIXME(":stub - returning empty MIB_ANYCASTIPADDRESS_TABLE\n"); + + size = FIELD_OFFSET(MIB_ANYCASTIPADDRESS_TABLE, Table[0]); + *table = heap_alloc( size ); + if (!*table) + { + err = ERROR_NOT_ENOUGH_MEMORY; + goto err; + } + (*table)->NumEntries = 0; + err = NO_ERROR; + +err: + return err; To complement the change above this can be just be `return NO_ERROR;` (make sure to remove the unused `err` variable)
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/4940#note_59027