From fd3c2adae70d2ed65017100db45e0b3babfe342a Mon Sep 17 00:00:00 2001 From: Andras Date: Mon, 29 Jul 2024 14:28:16 +0300 Subject: [PATCH] ITS#10244 win32: Fix passed ptr type From dfb3bbed656132456001c5aaca246fd4430e5ef5 ITS#9017 --- libraries/liblmdb/mdb.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/liblmdb/mdb.c b/libraries/liblmdb/mdb.c index 9ec7305efc..43cb1aa01d 100644 --- a/libraries/liblmdb/mdb.c +++ b/libraries/liblmdb/mdb.c @@ -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 */