Bruno Jesus : comctl32: Avoid magic numbers.
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Oct 31 02:53:36 CDT 2014
Module: wine
Branch: master
Commit: f70167df587a4af9954d0733fdd3e8d0b24e0289
URL: http://source.winehq.org/git/wine.git/?a=commit;h=f70167df587a4af9954d0733fdd3e8d0b24e0289
Author: Bruno Jesus <00cpxxx at gmail.com>
Date: Fri Oct 31 00:12:23 2014 -0200
comctl32: Avoid magic numbers.
---
dlls/comctl32/string.c | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/dlls/comctl32/string.c b/dlls/comctl32/string.c
index a9544fa..4c52f18 100644
--- a/dlls/comctl32/string.c
+++ b/dlls/comctl32/string.c
@@ -855,16 +855,15 @@ int WINAPI StrCSpnW(LPCWSTR lpszStr, LPCWSTR lpszMatch)
BOOL WINAPI IntlStrEqWorkerA(BOOL bCase, LPCSTR lpszStr, LPCSTR lpszComp,
int iLen)
{
- DWORD dwFlags = LOCALE_USE_CP_ACP;
+ DWORD dwFlags;
int iRet;
TRACE("(%d,%s,%s,%d)\n", bCase,
debugstr_a(lpszStr), debugstr_a(lpszComp), iLen);
/* FIXME: This flag is undocumented and unknown by our CompareString.
- * We need a define for it.
*/
- dwFlags = 0x10000000;
+ dwFlags = LOCALE_RETURN_GENITIVE_NAMES;
if (!bCase) dwFlags |= NORM_IGNORECASE;
iRet = CompareStringA(GetThreadLocale(),
@@ -891,9 +890,8 @@ BOOL WINAPI IntlStrEqWorkerW(BOOL bCase, LPCWSTR lpszStr, LPCWSTR lpszComp,
debugstr_w(lpszStr),debugstr_w(lpszComp), iLen);
/* FIXME: This flag is undocumented and unknown by our CompareString.
- * We need a define for it.
*/
- dwFlags = 0x10000000;
+ dwFlags = LOCALE_RETURN_GENITIVE_NAMES;
if (!bCase) dwFlags |= NORM_IGNORECASE;
iRet = CompareStringW(GetThreadLocale(),
More information about the wine-cvs
mailing list