From 91daa114367530464ada91ca3ddbd35ce5b09297 Mon Sep 17 00:00:00 2001 From: Davide Dunne <111002142+DavideDunne@users.noreply.github.com> Date: Wed, 1 Mar 2023 22:31:44 -0600 Subject: [PATCH] Add printing for GLE GetLastError() wasn't getting printed if the client was disconnected --- pipe-to-python-samples/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pipe-to-python-samples/main.cpp b/pipe-to-python-samples/main.cpp index 47e56271..f30bbc39 100644 --- a/pipe-to-python-samples/main.cpp +++ b/pipe-to-python-samples/main.cpp @@ -211,7 +211,7 @@ DWORD WINAPI InstanceThread(LPVOID lpvParam) { if (GetLastError() == ERROR_BROKEN_PIPE) { - _tprintf(TEXT("InstanceThread: client disconnected.\n"), GetLastError()); + _tprintf(TEXT("InstanceThread: client disconnected, GLE=%d.\n"), GetLastError()); } else {