Skip to content

Commit cf65c2a

Browse files
committed
style tweak
1 parent 55e7e80 commit cf65c2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wgapi_windows.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,10 @@ fn set_interface_mtu(interface_name: &str, mtu: u32) -> Result<(), WindowsError>
165165
// InitializeIpInterfaceEntry has to be called before get/set operations.
166166
let family = ADDRESS_FAMILY(family);
167167
unsafe { InitializeIpInterfaceEntry(&mut row) };
168-
row.InterfaceLuid = luid;
169-
row.Family = family;
170168

171169
// Load current configuration.
170+
row.InterfaceLuid = luid;
171+
row.Family = family;
172172
let res = unsafe { GetIpInterfaceEntry(&mut row) };
173173
if res.0 != 0 {
174174
error!("GetIpInterfaceEntry call failed, error value: {}", res.0);

0 commit comments

Comments
 (0)