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
6e2241a3
Commit
6e2241a3
authored
May 28, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
combase: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
ff5d6259
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Makefile.in
dlls/combase/Makefile.in
+2
-0
string.c
dlls/combase/string.c
+3
-3
No files found.
dlls/combase/Makefile.in
View file @
6e2241a3
MODULE
=
combase.dll
IMPORTS
=
advapi32 ole32 uuid
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
roapi.c
\
string.c
dlls/combase/string.c
View file @
6e2241a3
...
...
@@ -17,11 +17,11 @@
*/
#include <string.h>
#include <wchar.h>
#include "windows.h"
#include "winerror.h"
#include "hstring.h"
#include "wine/unicode.h"
#include "wine/debug.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
winstring
);
...
...
@@ -427,7 +427,7 @@ HRESULT WINAPI WindowsTrimStringStart(HSTRING str1, HSTRING str2, HSTRING *out)
}
for
(
start
=
0
;
start
<
priv1
->
length
;
start
++
)
{
if
(
!
memchrW
(
priv2
->
buffer
,
priv1
->
buffer
[
start
],
priv2
->
length
))
if
(
!
wmemchr
(
priv2
->
buffer
,
priv1
->
buffer
[
start
],
priv2
->
length
))
break
;
}
return
start
?
WindowsCreateString
(
&
priv1
->
buffer
[
start
],
priv1
->
length
-
start
,
out
)
:
...
...
@@ -454,7 +454,7 @@ HRESULT WINAPI WindowsTrimStringEnd(HSTRING str1, HSTRING str2, HSTRING *out)
}
for
(
len
=
priv1
->
length
;
len
>
0
;
len
--
)
{
if
(
!
memchrW
(
priv2
->
buffer
,
priv1
->
buffer
[
len
-
1
],
priv2
->
length
))
if
(
!
wmemchr
(
priv2
->
buffer
,
priv1
->
buffer
[
len
-
1
],
priv2
->
length
))
break
;
}
return
(
len
<
priv1
->
length
)
?
WindowsCreateString
(
priv1
->
buffer
,
len
,
out
)
:
...
...
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