From 5f06b2250c6344959489427c7a067eeef79bb5c8 Mon Sep 17 00:00:00 2001 From: Daniel Collins Date: Sat, 6 Aug 2011 16:18:44 +0000 Subject: [PATCH] Correctly order interfaces when first interface has the force primary flag set. --- changes.txt | 10 ++++++++++ src/ipxwrapper.c | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/changes.txt b/changes.txt index 6b26c6d..f7cc2af 100644 --- a/changes.txt +++ b/changes.txt @@ -1,3 +1,13 @@ +Version ???: + Feature: Redesigned ipxconfig UI. + + Cleanup: Use wrapper function to read registry values in ipxconfig. + + Bugfix: Only create registry key when saving configuration. + + Bugfix: Correctly order interfaces when first interface has the force + primary flag set. + Version 0.2.1: Bugfix: Delay stub DLL LoadLibrary calls until first API call as using LoadLibrary in DllMain crashes under some conditions. diff --git a/src/ipxwrapper.c b/src/ipxwrapper.c index 7eabcd4..d71351c 100644 --- a/src/ipxwrapper.c +++ b/src/ipxwrapper.c @@ -498,6 +498,10 @@ static BOOL load_nics(void) { /* Force primary flag set, insert at start of NIC list */ nnic->next = nics; nics = nnic; + + if(!enic) { + enic = nnic; + } }else if(enic) { enic->next = nnic; enic = nnic;