From f80171e9b4b8f2f940d17b1e043d3306abcd5a1e Mon Sep 17 00:00:00 2001
From: tatyana <tatyana@etersoft.ru>
Date: Fri, 4 Jan 2013 20:29:43 +0400
Subject: [eter-2.0.0 1/2] kernel32: Set NO_ERROR code(eterbug #8821)

---
 dlls/kernel32/locale.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 3b2cbc0..eb567f9 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -2884,6 +2884,7 @@ INT WINAPI CompareStringA(LCID lcid, DWORD style,
             SetLastError(ERROR_NOT_ENOUGH_MEMORY);
             return 0;
         }
+        SetLastError(NO_ERROR);
         MultiByteToWideChar(locale_cp, 0, str1, len1, str1W, len1W);
     }
     len2W = MultiByteToWideChar(locale_cp, 0, str2, len2, buf2W, 130);
@@ -2899,6 +2900,7 @@ INT WINAPI CompareStringA(LCID lcid, DWORD style,
             SetLastError(ERROR_NOT_ENOUGH_MEMORY);
             return 0;
         }
+        SetLastError(NO_ERROR);
         MultiByteToWideChar(locale_cp, 0, str2, len2, str2W, len2W);
     }
 
-- 
1.7.12.4
