DescriptionAvoid loading ws2_32.dll just to get htons() and friends.
Chrome does not load ws2_32.dll into the renderer sandbox, so code calling these functions would fail attempting to load the DLL. This CL replaces the calls with direct use of the MSVC byte-swap intrinsics.
BUG=115477, 116591
TEST=Chromoting client does not crash on connect on Windows.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=125110
Patch Set 1 #Patch Set 2 : Make patch 87% less ugly by moving macro hacks closer to failing code. #
Total comments: 1
Patch Set 3 : Make patch 4.7% uglier with helpful TODOs. #Messages
Total messages: 11 (0 generated)
|