From 6ceb01186463f333ae0d2352dd1246629b6d875c Mon Sep 17 00:00:00 2001
From: tatyana <tatyana@etersoft.ru>
Date: Tue, 8 Jan 2013 16:10:04 +0400
Subject: [PATCH 1/2] kernel32: Set NO_ERROR code in CompareStringA.

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

diff --git a/dlls/kernel32/locale.c b/dlls/kernel32/locale.c
index 57daab1..e427151 100644
--- a/dlls/kernel32/locale.c
+++ b/dlls/kernel32/locale.c
@@ -3007,6 +3007,7 @@ INT WINAPI CompareStringA(LCID lcid, DWORD flags,
                 SetLastError(ERROR_NOT_ENOUGH_MEMORY);
                 return 0;
             }
+            SetLastError(NO_ERROR);
             MultiByteToWideChar(locale_cp, 0, str1, len1, str1W, len1W);
         }
     }
@@ -3031,6 +3032,7 @@ INT WINAPI CompareStringA(LCID lcid, DWORD flags,
                 SetLastError(ERROR_NOT_ENOUGH_MEMORY);
                 return 0;
             }
+            SetLastError(NO_ERROR);
             MultiByteToWideChar(locale_cp, 0, str2, len2, str2W, len2W);
         }
     }
-- 
1.7.12.4
