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
7d0dccd2
Commit
7d0dccd2
authored
Oct 25, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Oct 26, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combase: Implement WindowsSubstringWithSpecifiedLength.
Signed-off-by:
Sebastian Lackner
<
sebastian@fds-team.de
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a870d49
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
2 deletions
+24
-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
+22
-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 @
7d0dccd2
...
...
@@ -22,6 +22,6 @@
@ stub WindowsReplaceString
@ stdcall WindowsStringHasEmbeddedNull(ptr ptr) combase.WindowsStringHasEmbeddedNull
@ stdcall WindowsSubstring(ptr long ptr) combase.WindowsSubstring
@ st
ub
WindowsSubstringWithSpecifiedLength
@ st
dcall WindowsSubstringWithSpecifiedLength(ptr long long ptr) combase.
WindowsSubstringWithSpecifiedLength
@ stub WindowsTrimStringEnd
@ stub WindowsTrimStringStart
dlls/combase/combase.spec
View file @
7d0dccd2
...
...
@@ -303,6 +303,6 @@
@ stub WindowsReplaceString
@ stdcall WindowsStringHasEmbeddedNull(ptr ptr)
@ stdcall WindowsSubstring(ptr long ptr)
@ st
ub WindowsSubstringWithSpecifiedLength
@ st
dcall WindowsSubstringWithSpecifiedLength(ptr long long ptr)
@ stub WindowsTrimStringEnd
@ stub WindowsTrimStringStart
dlls/combase/string.c
View file @
7d0dccd2
...
...
@@ -308,6 +308,28 @@ HRESULT WINAPI WindowsSubstring(HSTRING str, UINT32 start, HSTRING *out)
}
/***********************************************************************
* WindowsSubstringWithSpecifiedLength (combase.@)
*/
HRESULT
WINAPI
WindowsSubstringWithSpecifiedLength
(
HSTRING
str
,
UINT32
start
,
UINT32
len
,
HSTRING
*
out
)
{
struct
hstring_private
*
priv
=
impl_from_HSTRING
(
str
);
TRACE
(
"(%p, %u, %u, %p)
\n
"
,
str
,
start
,
len
,
out
);
if
(
out
==
NULL
)
return
E_INVALIDARG
;
if
(
start
+
len
<
start
||
start
+
len
>
WindowsGetStringLen
(
str
))
return
E_BOUNDS
;
if
(
len
==
0
)
{
*
out
=
NULL
;
return
S_OK
;
}
return
WindowsCreateString
(
&
priv
->
buffer
[
start
],
len
,
out
);
}
/***********************************************************************
* WindowsIsStringEmpty (combase.@)
*/
BOOL
WINAPI
WindowsIsStringEmpty
(
HSTRING
str
)
...
...
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