]> 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>
Tue, 30 Jul 2024 13:28:54 +0000 (14:28 +0100)
From dfb3bbed656132456001c5aaca246fd4430e5ef5 ITS#9017

libraries/liblmdb/mdb.c

index 9ec7305efc9f73404726cb8a122bb6188eb2c61c..43cb1aa01da629f9da3f2dd09429b6c74f175338 100644 (file)
@@ -4213,9 +4213,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 */