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
9ce1a6e3
Commit
9ce1a6e3
authored
Jun 21, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sxs: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
8a00b3fc
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
74 additions
and
76 deletions
+74
-76
Makefile.in
dlls/sxs/Makefile.in
+2
-0
cache.c
dlls/sxs/cache.c
+55
-58
name.c
dlls/sxs/name.c
+15
-16
sxs_private.h
dlls/sxs/sxs_private.h
+2
-2
No files found.
dlls/sxs/Makefile.in
View file @
9ce1a6e3
...
...
@@ -2,6 +2,8 @@ MODULE = sxs.dll
IMPORTS
=
oleaut32 ole32
IMPORTLIB
=
sxs
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
cache.c
\
name.c
\
...
...
dlls/sxs/cache.c
View file @
9ce1a6e3
This diff is collapsed.
Click to expand it.
dlls/sxs/name.c
View file @
9ce1a6e3
...
...
@@ -28,7 +28,6 @@
#include "winsxs.h"
#include "wine/debug.h"
#include "wine/unicode.h"
#include "sxs_private.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
sxs
);
...
...
@@ -143,22 +142,22 @@ static HRESULT WINAPI name_GetDisplayName(
if
(
!
buflen
||
flags
)
return
E_INVALIDARG
;
len
=
strlenW
(
name
->
name
)
+
1
;
if
(
name
->
arch
)
len
+=
strlenW
(
archW
)
+
strlenW
(
name
->
arch
)
+
4
;
if
(
name
->
token
)
len
+=
strlenW
(
tokenW
)
+
strlenW
(
name
->
token
)
+
4
;
if
(
name
->
type
)
len
+=
strlenW
(
typeW
)
+
strlenW
(
name
->
type
)
+
4
;
if
(
name
->
version
)
len
+=
strlenW
(
versionW
)
+
strlenW
(
version
)
+
4
;
len
=
l
strlenW
(
name
->
name
)
+
1
;
if
(
name
->
arch
)
len
+=
lstrlenW
(
archW
)
+
l
strlenW
(
name
->
arch
)
+
4
;
if
(
name
->
token
)
len
+=
lstrlenW
(
tokenW
)
+
l
strlenW
(
name
->
token
)
+
4
;
if
(
name
->
type
)
len
+=
lstrlenW
(
typeW
)
+
l
strlenW
(
name
->
type
)
+
4
;
if
(
name
->
version
)
len
+=
lstrlenW
(
versionW
)
+
l
strlenW
(
version
)
+
4
;
if
(
len
>
*
buflen
)
{
*
buflen
=
len
;
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
}
strcpyW
(
buffer
,
name
->
name
);
len
=
strlenW
(
buffer
);
if
(
name
->
arch
)
len
+=
s
printfW
(
buffer
+
len
,
fmtW
,
archW
,
name
->
arch
);
if
(
name
->
token
)
len
+=
s
printfW
(
buffer
+
len
,
fmtW
,
tokenW
,
name
->
token
);
if
(
name
->
type
)
len
+=
s
printfW
(
buffer
+
len
,
fmtW
,
typeW
,
name
->
type
);
if
(
name
->
version
)
len
+=
s
printfW
(
buffer
+
len
,
fmtW
,
versionW
,
name
->
version
);
l
strcpyW
(
buffer
,
name
->
name
);
len
=
l
strlenW
(
buffer
);
if
(
name
->
arch
)
len
+=
s
wprintf
(
buffer
+
len
,
*
buflen
-
len
,
fmtW
,
archW
,
name
->
arch
);
if
(
name
->
token
)
len
+=
s
wprintf
(
buffer
+
len
,
*
buflen
-
len
,
fmtW
,
tokenW
,
name
->
token
);
if
(
name
->
type
)
len
+=
s
wprintf
(
buffer
+
len
,
*
buflen
-
len
,
fmtW
,
typeW
,
name
->
type
);
if
(
name
->
version
)
len
+=
s
wprintf
(
buffer
+
len
,
*
buflen
-
len
,
fmtW
,
versionW
,
name
->
version
);
return
S_OK
;
}
...
...
@@ -211,13 +210,13 @@ static HRESULT WINAPI name_GetName(
if
(
!
buflen
||
!
buffer
)
return
E_INVALIDARG
;
name
=
get_name_attribute
(
iface
,
NAME_ATTR_ID_NAME
);
len
=
strlenW
(
name
)
+
1
;
len
=
l
strlenW
(
name
)
+
1
;
if
(
len
>
*
buflen
)
{
*
buflen
=
len
;
return
HRESULT_FROM_WIN32
(
ERROR_INSUFFICIENT_BUFFER
);
}
strcpyW
(
buffer
,
name
);
l
strcpyW
(
buffer
,
name
);
*
buflen
=
len
+
3
;
return
S_OK
;
}
...
...
@@ -232,9 +231,9 @@ static HRESULT parse_version( WCHAR *version, DWORD *high, DWORD *low )
for
(
i
=
0
,
p
=
version
;
i
<
4
;
i
++
)
{
if
(
!*
p
)
break
;
q
=
strchrW
(
p
,
'.'
);
q
=
wcschr
(
p
,
'.'
);
if
(
q
)
*
q
=
0
;
ver
[
i
]
=
atolW
(
p
);
ver
[
i
]
=
wcstol
(
p
,
NULL
,
10
);
if
(
!
q
&&
i
<
3
)
break
;
p
=
q
+
1
;
}
...
...
dlls/sxs/sxs_private.h
View file @
9ce1a6e3
...
...
@@ -32,7 +32,7 @@ static inline WCHAR *strdupW( const WCHAR *src )
WCHAR
*
dst
;
if
(
!
src
)
return
NULL
;
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
dst
)
strcpyW
(
dst
,
src
);
dst
=
HeapAlloc
(
GetProcessHeap
(),
0
,
(
l
strlenW
(
src
)
+
1
)
*
sizeof
(
WCHAR
)
);
if
(
dst
)
l
strcpyW
(
dst
,
src
);
return
dst
;
}
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