[Bug 10657] New: Regression: GetAdaptersInfo no longer returning hardware address.
http://bugs.winehq.org/show_bug.cgi?id=10657 Summary: Regression: GetAdaptersInfo no longer returning hardware address. Product: Wine Version: 0.9.50. Platform: PC OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: wine-net AssignedTo: wine-bugs(a)winehq.org ReportedBy: gnb10(a)gnb10.uklinux.net GetAdaptersInfo is failing to return the MAC address of eth0, which breaks the licence checking on a piece of software I'm using. A bit of debugging shows that getInterfacePhysicalByIndex is being called with 'len' set to zero, while the code in getInterfacePhysicalByName expects len to be initialised to the available buffer space for holding the address. The change that caused it seems to have been the one in this commit: http://www.winehq.org/pipermail/wine-cvs/2007-October/037001.html which among other things removed the initialisation of the length passed in. Certainly the trivial change --- wine-0.9.50/dlls/iphlpapi/iphlpapi_main.c 2007-11-30 17:38:15.000000000 +0000 +++ wine-0.9.50.new/dlls/iphlpapi/iphlpapi_main.c 2007-12-03 13:41:12.000000000 +0000 @@ -735,6 +735,7 @@ /* on Win98 this is left empty, but whatever */ getInterfaceNameByIndex(table->indexes[ndx], ptr->AdapterName); + ptr->AddressLength = sizeof(ptr->Address); getInterfacePhysicalByIndex(table->indexes[ndx], &ptr->AddressLength, ptr->Address, &ptr->Type); ptr->Index = table->indexes[ndx]; makes the application I'm using work again, but I'm not familiar enough with wine internals to know whether this is the right place for it, or whether it should already have been initialised elsewhere. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 Guido <gnb10(a)gnb10.uklinux.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 --- Comment #1 from Stefan Dösinger <stefandoesinger(a)gmx.at> 2007-12-03 08:05:32 --- You can send your patch to wine-devel for discussion, or send it to wine-patches and see what happens. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 James Hawkins <truiken(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression Summary|Regression: GetAdaptersInfo |GetAdaptersInfo no longer |no longer returning hardware|returning hardware address. |address. | -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 --- Comment #2 from Juan Lang <juan_lang(a)yahoo.com> 2007-12-03 13:10:58 --- Guido, good catch. Your patch looks correct to me. Please send to wine-patches for inclusion. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 Juan Lang <juan_lang(a)yahoo.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |FIXED --- Comment #3 from Juan Lang <juan_lang(a)yahoo.com> 2007-12-04 15:03:31 --- The fix was committed today.. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=10657 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2008-01-28 05:42:18 --- Closing all RESOLVED FIXED bugs older than four weeks. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org