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
e39405d4
Commit
e39405d4
authored
Feb 10, 2016
by
Sebastian Lackner
Committed by
Alexandre Julliard
Feb 11, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combase: Implement WindowsCompareStringOrdinal.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
b2caf751
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
36 additions
and
2 deletions
+36
-2
api-ms-win-core-winrt-string-l1-1-0.spec
...rt-string-l1-1-0/api-ms-win-core-winrt-string-l1-1-0.spec
+1
-1
combase.spec
dlls/combase/combase.spec
+1
-1
string.c
dlls/combase/string.c
+33
-0
winnls.h
include/winnls.h
+1
-0
No files found.
dlls/api-ms-win-core-winrt-string-l1-1-0/api-ms-win-core-winrt-string-l1-1-0.spec
View file @
e39405d4
...
...
@@ -6,7 +6,7 @@
@ stub HSTRING_UserSize64
@ stub HSTRING_UserUnmarshal
@ stub HSTRING_UserUnmarshal64
@ st
ub
WindowsCompareStringOrdinal
@ st
dcall WindowsCompareStringOrdinal(ptr ptr ptr) combase.
WindowsCompareStringOrdinal
@ stdcall WindowsConcatString(ptr ptr ptr) combase.WindowsConcatString
@ stdcall WindowsCreateString(wstr long ptr) combase.WindowsCreateString
@ stdcall WindowsCreateStringReference(wstr long ptr ptr) combase.WindowsCreateStringReference
...
...
dlls/combase/combase.spec
View file @
e39405d4
...
...
@@ -287,7 +287,7 @@
@ stub WdtpInterfacePointer_UserSize64
@ stdcall WdtpInterfacePointer_UserUnmarshal(ptr ptr ptr ptr) ole32.WdtpInterfacePointer_UserUnmarshal
@ stub WdtpInterfacePointer_UserUnmarshal64
@ st
ub WindowsCompareStringOrdinal
@ st
dcall WindowsCompareStringOrdinal(ptr ptr ptr)
@ stdcall WindowsConcatString(ptr ptr ptr)
@ stdcall WindowsCreateString(wstr long ptr)
@ stdcall WindowsCreateStringReference(wstr long ptr ptr)
...
...
dlls/combase/string.c
View file @
e39405d4
...
...
@@ -372,3 +372,36 @@ BOOL WINAPI WindowsIsStringEmpty(HSTRING str)
return
TRUE
;
return
priv
->
length
==
0
;
}
/***********************************************************************
* WindowsCompareStringOrdinal (combase.@)
*/
HRESULT
WINAPI
WindowsCompareStringOrdinal
(
HSTRING
str1
,
HSTRING
str2
,
INT32
*
res
)
{
struct
hstring_private
*
priv1
=
impl_from_HSTRING
(
str1
);
struct
hstring_private
*
priv2
=
impl_from_HSTRING
(
str2
);
const
WCHAR
*
buf1
=
empty
,
*
buf2
=
empty
;
UINT32
len1
=
0
,
len2
=
0
;
TRACE
(
"(%p, %p, %p)
\n
"
,
str1
,
str2
,
res
);
if
(
res
==
NULL
)
return
E_INVALIDARG
;
if
(
str1
==
str2
)
{
*
res
=
0
;
return
S_OK
;
}
if
(
str1
)
{
buf1
=
priv1
->
buffer
;
len1
=
priv1
->
length
;
}
if
(
str2
)
{
buf2
=
priv2
->
buffer
;
len2
=
priv2
->
length
;
}
*
res
=
CompareStringOrdinal
(
buf1
,
len1
,
buf2
,
len2
,
FALSE
)
-
CSTR_EQUAL
;
return
S_OK
;
}
include/winnls.h
View file @
e39405d4
...
...
@@ -831,6 +831,7 @@ WINBASEAPI INT WINAPI CompareStringA(LCID,DWORD,LPCSTR,INT,LPCSTR,INT);
WINBASEAPI
INT
WINAPI
CompareStringW
(
LCID
,
DWORD
,
LPCWSTR
,
INT
,
LPCWSTR
,
INT
);
#define CompareString WINELIB_NAME_AW(CompareString)
WINBASEAPI
INT
WINAPI
CompareStringEx
(
LPCWSTR
,
DWORD
,
LPCWSTR
,
INT
,
LPCWSTR
,
INT
,
LPNLSVERSIONINFO
,
LPVOID
,
LPARAM
);
WINBASEAPI
INT
WINAPI
CompareStringOrdinal
(
const
WCHAR
*
,
INT
,
const
WCHAR
*
,
INT
,
BOOL
);
WINBASEAPI
LCID
WINAPI
ConvertDefaultLocale
(
LCID
);
WINBASEAPI
BOOL
WINAPI
EnumCalendarInfoA
(
CALINFO_ENUMPROCA
,
LCID
,
CALID
,
CALTYPE
);
WINBASEAPI
BOOL
WINAPI
EnumCalendarInfoW
(
CALINFO_ENUMPROCW
,
LCID
,
CALID
,
CALTYPE
);
...
...
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