]> git.ipfire.org Git - thirdparty/openldap.git/commitdiff
ITS#10244 win32: Fix passed ptr type
authorAndras <zanaviska@tutanota.com>
Mon, 29 Jul 2024 11:28:16 +0000 (14:28 +0300)
committerHoward Chu <hyc@openldap.org>
Sat, 10 Aug 2024 12:32:21 +0000 (13:32 +0100)
From dfb3bbed656132456001c5aaca246fd4430e5ef5 ITS#9017

libraries/liblmdb/mdb.c

index 03e28d48a4e0c4449077aefe892beaf64435fe9e..8ffb47c1a6032f278b5a1493a119f6aea92eb1b0 100644 (file)
@@ -3918,9 +3918,11 @@ retry_seek:
                rc = 0;
                while (--async_i >= 0) {
                        if (ov[async_i].hEvent) {
-                               if (!GetOverlappedResult(fd, &ov[async_i], &wres, TRUE)) {
+                               DWORD temp_wres;
+                               if (!GetOverlappedResult(fd, &ov[async_i], &temp_wres, TRUE)) {
                                        rc = ErrCode(); /* Continue on so that all the event signals are reset */
                                }
+                               wres = temp_wres;
                        }
                }
                if (rc) { /* any error on GetOverlappedResult, exit now */