https://bugs.winehq.org/show_bug.cgi?id=54491
Bug ID: 54491 Summary: regedit/regproc.c - export_key() is unable to return TRUE Product: Wine Version: unspecified Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs Assignee: wine-bugs@winehq.org Reporter: gonzomdx@gmail.com Distribution: ---
export_key() function should return either TRUE if succeeded or FALSE if failed.
Values are returned in lines 1459 and 1463 (hardcoded FALSE) as well as line 1471 (BOOL ret).
Due to the fact that ret get its value returned from the function export_registry_data() (line 1466) which EVER returns an int of value 0, there is no possibility that export_key() succeeds.
The easiest solution would be to simply return TRUE instead of ret. The most elegant solution would be to let export_registry_data() sane data.