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
86319607
Commit
86319607
authored
Nov 25, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opcservices: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
c6aeabdd
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
14 deletions
+12
-14
Makefile.in
dlls/opcservices/Makefile.in
+2
-0
compress.c
dlls/opcservices/compress.c
+0
-2
package.c
dlls/opcservices/package.c
+5
-6
uri.c
dlls/opcservices/uri.c
+5
-6
No files found.
dlls/opcservices/Makefile.in
View file @
86319607
MODULE
=
opcservices.dll
IMPORTS
=
uuid ole32 advapi32 urlmon xmllite oleaut32
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
compress.c
\
deflate.c
\
...
...
dlls/opcservices/compress.c
View file @
86319607
...
...
@@ -18,8 +18,6 @@
#define COBJMACROS
#include "config.h"
#include <stdarg.h>
#include "windef.h"
...
...
dlls/opcservices/package.c
View file @
86319607
...
...
@@ -26,7 +26,6 @@
#include "wine/debug.h"
#include "wine/list.h"
#include "wine/unicode.h"
#include "opc_private.h"
...
...
@@ -732,7 +731,7 @@ static WCHAR *opc_strdupW(const WCHAR *str)
{
size_t
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
CoTaskMemAlloc
(
size
);
if
(
ret
)
memcpy
(
ret
,
str
,
size
);
...
...
@@ -1169,7 +1168,7 @@ static struct opc_relationship *opc_relationshipset_get_rel(struct opc_relations
for
(
i
=
0
;
i
<
relationship_set
->
count
;
i
++
)
{
if
(
!
strcmpW
(
id
,
relationship_set
->
relationships
[
i
]
->
id
))
if
(
!
wcscmp
(
id
,
relationship_set
->
relationships
[
i
]
->
id
))
return
relationship_set
->
relationships
[
i
];
}
...
...
@@ -1207,7 +1206,7 @@ static HRESULT opc_relationship_create(struct opc_relationship_set *set, const W
/* FIXME: test that generated id is unique */
RtlGenRandom
(
&
generated
,
sizeof
(
generated
));
s
printfW
(
relationship
->
id
,
fmtW
,
generated
);
s
wprintf
(
relationship
->
id
,
10
,
fmtW
,
generated
);
if
(
opc_relationshipset_get_rel
(
set
,
relationship
->
id
))
{
...
...
@@ -1635,11 +1634,11 @@ static HRESULT opc_package_add_content_type(struct content_types *types, IOpcPar
if
(
cur
->
element
==
CONTENT_TYPE_OVERRIDE
)
continue
;
if
(
!
strcmpiW
(
cur
->
u
.
def
.
ext
,
ext
))
if
(
!
wcsicmp
(
cur
->
u
.
def
.
ext
,
ext
))
{
added
=
TRUE
;
if
(
!
strcmpW
(
cur
->
u
.
def
.
type
,
content_type
))
if
(
!
wcscmp
(
cur
->
u
.
def
.
type
,
content_type
))
break
;
hr
=
opc_package_add_override_content_type
(
types
,
part
);
...
...
dlls/opcservices/uri.c
View file @
86319607
...
...
@@ -23,7 +23,6 @@
#include "winbase.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "opc_private.h"
...
...
@@ -467,7 +466,7 @@ static IUri *opc_part_uri_get_rels_uri(IUri *uri)
return
NULL
;
}
end
=
strrchrW
(
path
,
'/'
);
end
=
wcsrchr
(
path
,
'/'
);
if
(
end
&&
end
>=
path
+
ARRAY_SIZE
(
relsdirW
)
-
1
)
start
=
end
-
ARRAY_SIZE
(
relsdirW
)
+
1
;
if
(
!
start
)
...
...
@@ -476,7 +475,7 @@ static IUri *opc_part_uri_get_rels_uri(IUri *uri)
/* Test if it's already relationships uri. */
if
(
len
>
ARRAY_SIZE
(
relsextW
))
{
if
(
!
strcmpW
(
path
+
len
-
ARRAY_SIZE
(
relsextW
)
+
1
,
relsextW
))
if
(
!
wcscmp
(
path
+
len
-
ARRAY_SIZE
(
relsextW
)
+
1
,
relsextW
))
{
if
(
start
&&
!
memcmp
(
start
,
relsdirW
,
ARRAY_SIZE
(
relsdirW
)
-
sizeof
(
WCHAR
)))
{
...
...
@@ -500,9 +499,9 @@ static IUri *opc_part_uri_get_rels_uri(IUri *uri)
ret
[
start
-
path
]
=
0
;
}
strcatW
(
ret
,
relsdirW
);
strcatW
(
ret
,
end
);
strcatW
(
ret
,
relsextW
);
l
strcatW
(
ret
,
relsdirW
);
l
strcatW
(
ret
,
end
);
l
strcatW
(
ret
,
relsextW
);
if
(
FAILED
(
hr
=
CreateUri
(
ret
,
Uri_CREATE_ALLOW_RELATIVE
,
0
,
&
rels_uri
)))
WARN
(
"Failed to create rels uri, hr %#x.
\n
"
,
hr
);
...
...
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