Re: regedit: Read registry lines through a single function
1 May
2017
1 May
'17
6:39 p.m.
Hugh McMaster <hugh.mcmaster(a)outlook.com> writes:
+static WCHAR *get_line(struct reg_info *reg_info) +{ + WCHAR *line; + + if (!reg_info->is_unicode) + { + char *lineA = get_lineA(reg_info->file); + line = GetWideString(lineA); + } + else + { + line = get_lineW(reg_info->file); + } + + return line; +}
That's fairly ugly. If you want to use common code, you should probably pass a function pointer for getting lines. Also you'd have to do it in a way that doesn't require freeing the buffer. -- Alexandre Julliard julliard(a)winehq.org
3148
Age (days ago)
3148
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard