https://bugs.winehq.org/show_bug.cgi?id=38221
Bug ID: 38221 Summary: Wrong parameter assignment in get_family_names_from_stream() Product: Wine Version: 1.7.38 Hardware: x86 OS: Mac OS X Status: UNCONFIRMED Severity: normal Priority: P2 Component: dwrite Assignee: wine-bugs@winehq.org Reporter: isakov-sl@bk.ru
File /dll/dwrite/font.c: line 786 In function HRESULT get_family_names_from_stream(IDWriteFontFileStream *stream, UINT32 index, DWRITE_FONT_FACE_TYPE facetype, IDWriteLocalizedStrings **names)
there is an assignment names=NULL; There is no sense to assign a value to function parameter. I think there should be
~~~~ *names = NULL; ~~~~
https://bugs.winehq.org/show_bug.cgi?id=38221
--- Comment #1 from Nikolay Sivov bunglehead@gmail.com --- Good catch. Would you care to send a patch or should I? (note that there's a bit more about it than fixing assignment).
https://bugs.winehq.org/show_bug.cgi?id=38221
--- Comment #2 from Sergey isakov-sl@bk.ru --- (In reply to Nikolay Sivov from comment #1)
Good catch. Would you care to send a patch or should I? (note that there's a bit more about it than fixing assignment).
Yes, I made more patched but out of the bug. diff attached.
https://bugs.winehq.org/show_bug.cgi?id=38221
--- Comment #3 from Sergey isakov-sl@bk.ru --- Created attachment 51021 --> https://bugs.winehq.org/attachment.cgi?id=51021 patch for parameter assignment
https://bugs.winehq.org/show_bug.cgi?id=38221
--- Comment #4 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sergey from comment #3)
Created attachment 51021 [details] patch for parameter assignment
That's not how it works. First of all patches are not picked up from bugzilla, second - unrelated changes should be split to several patches. And both dwrite changes are wrong.
If you want to send them first read http://wiki.winehq.org/SubmittingPatches, and consider using #winehackers channel or wine-devel list, bugzilla is not meant to be used for patch reviews.
https://bugs.winehq.org/show_bug.cgi?id=38221
--- Comment #5 from Sergey isakov-sl@bk.ru --- (In reply to Nikolay Sivov from comment #1)
Good catch. Would you care to send a patch or should I? (note that there's a bit more about it than fixing assignment).
I think it will be better you create and send appropriate patch. I just point you to a possible bug.
https://bugs.winehq.org/show_bug.cgi?id=38221
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1
--- Comment #6 from Nikolay Sivov bunglehead@gmail.com --- (In reply to Sergey from comment #5)
(In reply to Nikolay Sivov from comment #1)
Good catch. Would you care to send a patch or should I? (note that there's a bit more about it than fixing assignment).
I think it will be better you create and send appropriate patch. I just point you to a possible bug.
Okay, will do. Thanks for the report.
https://bugs.winehq.org/show_bug.cgi?id=38221
Nikolay Sivov bunglehead@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Fixed by SHA1| |5eccb1322d09362c5431911bcdc | |5a4d218ee98fb Status|NEW |RESOLVED Resolution|--- |FIXED
--- Comment #7 from Nikolay Sivov bunglehead@gmail.com --- Fixed with 5eccb1322d09362c5431911bcdc5a4d218ee98fb.
https://bugs.winehq.org/show_bug.cgi?id=38221
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #8 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 1.7.39.