Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
400b3449
Commit
400b3449
authored
Jul 21, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed flags handling in StrIsIntlEqualA/W (spotted by James Hawkins).
parent
f3b7cadf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
31 deletions
+13
-31
string.c
dlls/shlwapi/string.c
+11
-23
string.c
dlls/shlwapi/tests/string.c
+2
-8
No files found.
dlls/shlwapi/string.c
View file @
400b3449
...
...
@@ -2051,24 +2051,18 @@ INT WINAPI StrFromTimeIntervalW(LPWSTR lpszStr, UINT cchMax, DWORD dwMS,
BOOL
WINAPI
StrIsIntlEqualA
(
BOOL
bCase
,
LPCSTR
lpszStr
,
LPCSTR
lpszComp
,
int
iLen
)
{
DWORD
dwFlags
=
LOCALE_USE_CP_ACP
;
int
iRet
;
DWORD
dwFlags
;
TRACE
(
"(%d,%s,%s,%d)
\n
"
,
bCase
,
debugstr_a
(
lpszStr
),
debugstr_a
(
lpszComp
),
iLen
);
/* FIXME: Th
ese flags are
undocumented and unknown by our CompareString.
* We need
defines for them
.
/* FIXME: Th
is flag is
undocumented and unknown by our CompareString.
* We need
a define for it
.
*/
dwFlags
|=
bCase
?
0x10000000
:
0x10000001
;
iRet
=
CompareStringA
(
GetThreadLocale
(),
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
);
if
(
!
iRet
)
iRet
=
CompareStringA
(
2048
,
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
);
dwFlags
=
0x10000000
;
if
(
!
bCase
)
dwFlags
|=
NORM_IGNORECASE
;
return
iRet
==
2
?
TRUE
:
FALSE
;
return
(
CompareStringA
(
GetThreadLocale
(),
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
)
==
CSTR_EQUAL
)
;
}
/*************************************************************************
...
...
@@ -2080,23 +2074,17 @@ BOOL WINAPI StrIsIntlEqualW(BOOL bCase, LPCWSTR lpszStr, LPCWSTR lpszComp,
int
iLen
)
{
DWORD
dwFlags
;
int
iRet
;
TRACE
(
"(%d,%s,%s,%d)
\n
"
,
bCase
,
debugstr_w
(
lpszStr
),
debugstr_w
(
lpszComp
),
iLen
);
/* FIXME: Th
ese flags are
undocumented and unknown by our CompareString.
* We need
defines for them
.
/* FIXME: Th
is flag is
undocumented and unknown by our CompareString.
* We need
a define for it
.
*/
dwFlags
=
bCase
?
0x10000000
:
0x10000001
;
iRet
=
CompareStringW
(
GetThreadLocale
(),
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
);
if
(
!
iRet
)
iRet
=
CompareStringW
(
2048
,
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
);
dwFlags
=
0x10000000
;
if
(
!
bCase
)
dwFlags
|=
NORM_IGNORECASE
;
return
iRet
==
2
?
TRUE
:
FALSE
;
return
(
CompareStringW
(
GetThreadLocale
(),
dwFlags
,
lpszStr
,
iLen
,
lpszComp
,
iLen
)
==
CSTR_EQUAL
)
;
}
/*************************************************************************
...
...
dlls/shlwapi/tests/string.c
View file @
400b3449
...
...
@@ -558,16 +558,10 @@ void test_StrCmpA(void)
ok
(
!
ChrCmpIA
(
'b'
,
'B'
),
"ChrCmpIA is not case-insensitive
\n
"
);
ok
(
ChrCmpIA
(
'a'
,
'z'
),
"ChrCmpIA believes that a == z!
\n
"
);
todo_wine
{
ok
(
StrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
}
ok
(
StrIsIntlEqualA
(
FALSE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
StrIsIntlEqualA
(
TRUE
,
str1
,
str2
,
5
),
"StrIsIntlEqualA(TRUE,...) isn't case-sensitive
\n
"
);
todo_wine
{
ok
(
IntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
}
ok
(
IntlStrEqWorkerA
(
FALSE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(FALSE,...) isn't case-insensitive
\n
"
);
ok
(
!
IntlStrEqWorkerA
(
TRUE
,
str1
,
str2
,
5
),
"IntlStrEqWorkerA(TRUE,...) isn't case-sensitive
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment