Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
7bfa058a
Commit
7bfa058a
authored
Oct 25, 2022
by
Hans Leidekker
Committed by
Alexandre Julliard
Oct 26, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wbemprox: WQL string comparisons are case insensitive.
Wine-Bug:
https://bugs.winehq.org/show_bug.cgi?id=53832
parent
dd5ce029
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
query.c
dlls/wbemprox/query.c
+6
-6
query.c
dlls/wbemprox/tests/query.c
+22
-0
No files found.
dlls/wbemprox/query.c
View file @
7bfa058a
...
...
@@ -118,22 +118,22 @@ static HRESULT eval_strcmp( UINT op, const WCHAR *lstr, const WCHAR *rstr, LONGL
switch
(
op
)
{
case
OP_EQ
:
*
val
=
!
wcscmp
(
lstr
,
rstr
);
*
val
=
!
wcs
i
cmp
(
lstr
,
rstr
);
break
;
case
OP_GT
:
*
val
=
wcscmp
(
lstr
,
rstr
)
>
0
;
*
val
=
wcs
i
cmp
(
lstr
,
rstr
)
>
0
;
break
;
case
OP_LT
:
*
val
=
wcscmp
(
lstr
,
rstr
)
<
0
;
*
val
=
wcs
i
cmp
(
lstr
,
rstr
)
<
0
;
break
;
case
OP_LE
:
*
val
=
wcscmp
(
lstr
,
rstr
)
<=
0
;
*
val
=
wcs
i
cmp
(
lstr
,
rstr
)
<=
0
;
break
;
case
OP_GE
:
*
val
=
wcscmp
(
lstr
,
rstr
)
>=
0
;
*
val
=
wcs
i
cmp
(
lstr
,
rstr
)
>=
0
;
break
;
case
OP_NE
:
*
val
=
wcscmp
(
lstr
,
rstr
);
*
val
=
wcs
i
cmp
(
lstr
,
rstr
);
break
;
case
OP_LIKE
:
*
val
=
eval_like
(
lstr
,
rstr
);
...
...
dlls/wbemprox/tests/query.c
View file @
7bfa058a
...
...
@@ -2143,6 +2143,28 @@ static void test_Win32_LogicalDisk( IWbemServices *services )
IEnumWbemClassObject_Release
(
result
);
SysFreeString
(
query
);
query
=
SysAllocString
(
L"SELECT * FROM Win32_LogicalDisk WHERE DeviceID > 'b:' AND DeviceID < 'd:'"
);
hr
=
IWbemServices_ExecQuery
(
services
,
wql
,
query
,
0
,
NULL
,
&
result
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
count
=
0
;
hr
=
IEnumWbemClassObject_Next
(
result
,
10000
,
1
,
&
obj
,
&
count
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
count
==
1
,
"got %lu
\n
"
,
count
);
IWbemClassObject_Release
(
obj
);
SysFreeString
(
query
);
query
=
SysAllocString
(
L"SELECT * FROM Win32_LogicalDisk WHERE DeviceID = 'C:'"
);
hr
=
IWbemServices_ExecQuery
(
services
,
wql
,
query
,
0
,
NULL
,
&
result
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
count
=
0
;
hr
=
IEnumWbemClassObject_Next
(
result
,
10000
,
1
,
&
obj
,
&
count
);
ok
(
hr
==
S_OK
,
"got %#lx
\n
"
,
hr
);
ok
(
count
==
1
,
"got %lu
\n
"
,
count
);
IWbemClassObject_Release
(
obj
);
SysFreeString
(
query
);
IEnumWbemClassObject_Release
(
result
);
SysFreeString
(
query
);
SysFreeString
(
wql
);
}
...
...
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