Fix windows build
authorJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sat, 12 Nov 2016 15:57:12 +0000 (16:57 +0100)
committerJoseph C. Lehner <joseph.c.lehner@gmail.com>
Sat, 12 Nov 2016 15:57:12 +0000 (16:57 +0100)
ethsock.c

index 024d77df6147402ba2f6b2c21303df0f3b2de590..1d6c173864d66e283ee7494270fc9be185218a9d 100644 (file)
--- a/ethsock.c
+++ b/ethsock.c
@@ -40,7 +40,7 @@ struct ethsock
 
 struct ethsock_ip_undo
 {
-#ifndef NRMPFLASH_WINDOWS
+#ifndef NMRPFLASH_WINDOWS
        uint32_t ip[2];
 #else
        ULONG context;
@@ -751,7 +751,7 @@ out:
 #else // NMRPFLASH_WINDOWS
        ULONG instance;
 
-       DWORD ret = AddIPAddress(ipaddr, ipmask, sock->index, &undo->context, &instance);
+       DWORD ret = AddIPAddress(ipaddr, ipmask, sock->index, &(*undo)->context, &instance);
        if (ret != NO_ERROR) {
                win_perror2("AddIPAddress", ret);
                return -1;