From 41fc140628fe74e1fd2e5ab2c97ef665101f473e Mon Sep 17 00:00:00 2001 From: qndel Date: Mon, 12 Oct 2020 03:20:48 +0200 Subject: [PATCH] GetErrorStr cleanup --- Source/appfat.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/appfat.cpp b/Source/appfat.cpp index 68aa843e6..c0a193e45 100644 --- a/Source/appfat.cpp +++ b/Source/appfat.cpp @@ -78,8 +78,7 @@ char *GetErrorStr(DWORD error_code) size = strlen(sz_error_buf); chr = &sz_error_buf[size - 1]; - while (size > 0) { - size--; + while (size-- > 0) { chr--; if (*chr != '\r' && *chr != '\n')