[PATCH pinentry] w32: Fix return value of dlg_proc callback function

Biswapriyo Nath nathbappai at gmail.com
Thu Sep 7 07:05:03 CEST 2023


The return type of dlg_proc function was changed in
abbecc67d9a9b007b77295c599c90b37ddee275c commit.

Signed-off-by: Biswapriyo Nath <nathbappai at gmail.com>
---
 w32/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/w32/main.c b/w32/main.c
index 922e9c4..e9b35a3 100644
--- a/w32/main.c
+++ b/w32/main.c
@@ -395,12 +395,12 @@ dlg_proc (HWND dlg, UINT msg, WPARAM wparam, LPARAM lparam)
           /* Display the error prompt in red.  */
           SetTextColor ((HDC)wparam, RGB (255, 0, 0));
           SetBkMode ((HDC)wparam, TRANSPARENT);
-          return (BOOL)GetStockObject (NULL_BRUSH);
+          return (INT_PTR)GetStockObject (NULL_BRUSH);
         }
       break;
 
     }
-  return FALSE;
+  return 0;
 }
 
 
-- 
2.42.0




More information about the Gnupg-devel mailing list