[WSHTCPIP]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 11 Oct 2014 10:26:45 +0000 (10:26 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Sat, 11 Oct 2014 10:26:45 +0000 (10:26 +0000)
Fix a bug that manifests in an ASSERT on MSVC builds

svn path=/trunk/; revision=64659

reactos/dll/win32/wshtcpip/wshtcpip.c

index 7620d6a..8058599 100644 (file)
@@ -207,9 +207,9 @@ GetTdiTypeId(
           break;
 
        case IPPROTO_TCP:
           break;
 
        case IPPROTO_TCP:
+          *TdiType = INFO_TYPE_CONNECTION;
           switch (OptionName)
           {
           switch (OptionName)
           {
-              *TdiType = INFO_TYPE_CONNECTION;
              case TCP_NODELAY:
                  *TdiId = TCP_SOCKET_NODELAY;
                  return;
              case TCP_NODELAY:
                  *TdiId = TCP_SOCKET_NODELAY;
                  return;