From 37f92009f6ca4938a34a1d7cecff41d331c7423c Mon Sep 17 00:00:00 2001
From: Jason Hood <jadoxa@yahoo.com.au>
Date: Mon, 29 Apr 2019 20:20:34 +1000
Subject: [PATCH] Release 1.89.

---
 ANSI.c     |  3 +++
 ansicon.c  |  2 +-
 readme.txt |  9 ++++++---
 version.h  | 10 +++++-----
 4 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/ANSI.c b/ANSI.c
index 701533e..091aeed 100644
--- a/ANSI.c
+++ b/ANSI.c
@@ -226,6 +226,9 @@
 
   v1.88, 1 March, 2019:
     a detached process has no console handle (fixes set_ansicon).
+
+  v1.89, 29 April, 2019:
+    an eight-digit window handle would break my custom printf.
 */
 
 #include "ansicon.h"
diff --git a/ansicon.c b/ansicon.c
index 0fa742b..b2be8c8 100644
--- a/ansicon.c
+++ b/ansicon.c
@@ -99,7 +99,7 @@
     add log level 32 to log CreateFile.
 */
 
-#define PDATE L"1 March, 2019"
+#define PDATE L"29 April, 2019"
 
 #include "ansicon.h"
 #include "version.h"
diff --git a/readme.txt b/readme.txt
index b3fdc2b..74ac108 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,7 +3,7 @@
 
 			 Copyright 2005-2019 Jason Hood
 
-			    Version 1.88.  Freeware
+			    Version 1.89.  Freeware
 
 
 Description
@@ -340,6 +340,9 @@ Version History
 
     Legend: + added, - bug-fixed, * changed.
 
+    1.89 - 29 April, 2019:
+    - fix occasional freeze on startup (bug converting 8-digit window handle).
+
     1.88 - 1 March, 2019:
     - fix ANSICON environment variable when there is no console.
 
@@ -647,5 +650,5 @@ Distribution
     in LICENSE.txt.
 
 
-==========================
-Jason Hood, 1 March, 2019.
+===========================
+Jason Hood, 29 April, 2019.
diff --git a/version.h b/version.h
index 1aca643..75a0ad5 100644
--- a/version.h
+++ b/version.h
@@ -2,11 +2,11 @@
   version.h - Version defines.
 */
 
-#define PVERS	L"1.88"         // wide string
-#define PVERSA	 "1.88"         // ANSI string (windres 2.16.91 didn't like L)
-#define PVERE	L"188"          // wide environment string
-#define PVEREA	 "188"          // ANSI environment string
-#define PVERB	1,8,8,0 	// binary (resource)
+#define PVERS	L"1.89"         // wide string
+#define PVERSA	 "1.89"         // ANSI string (windres 2.16.91 didn't like L)
+#define PVERE	L"189"          // wide environment string
+#define PVEREA	 "189"          // ANSI environment string
+#define PVERB	1,8,9,0 	// binary (resource)
 
 #ifdef _WIN64
 # define BITS L"64"