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
b14dffa6
Commit
b14dffa6
authored
Jun 05, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hlink: Build with msvcrt.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
af0e0d9b
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
14 deletions
+14
-14
Makefile.in
dlls/hlink/Makefile.in
+2
-0
extserv.c
dlls/hlink/extserv.c
+1
-2
hlink_main.c
dlls/hlink/hlink_main.c
+5
-5
hlink_private.h
dlls/hlink/hlink_private.h
+2
-3
link.c
dlls/hlink/link.c
+4
-4
No files found.
dlls/hlink/Makefile.in
View file @
b14dffa6
...
...
@@ -3,6 +3,8 @@ IMPORTLIB = hlink
IMPORTS
=
uuid shell32 ole32 advapi32
DELAYIMPORTS
=
urlmon
EXTRADLLFLAGS
=
-mno-cygwin
C_SRCS
=
\
browse_ctx.c
\
extserv.c
\
...
...
dlls/hlink/extserv.c
View file @
b14dffa6
...
...
@@ -19,7 +19,6 @@
#include "hlink_private.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
hlink
);
...
...
@@ -243,7 +242,7 @@ static HRESULT ExtServ_ImplSetAdditionalHeaders(ExtensionService* This, LPCWSTR
if
(
!
pwzAdditionalHeaders
)
return
S_OK
;
len
=
strlenW
(
pwzAdditionalHeaders
);
len
=
l
strlenW
(
pwzAdditionalHeaders
);
if
(
len
&&
pwzAdditionalHeaders
[
len
-
1
]
!=
'\n'
&&
pwzAdditionalHeaders
[
len
-
1
]
!=
'\r'
)
{
static
const
WCHAR
endlW
[]
=
{
'\r'
,
'\n'
,
0
};
...
...
dlls/hlink/hlink_main.c
View file @
b14dffa6
...
...
@@ -119,7 +119,7 @@ HRESULT WINAPI HlinkCreateFromString( LPCWSTR pwzTarget, LPCWSTR pwzLocation,
if
(
pwzTarget
)
{
hash
=
strchrW
(
pwzTarget
,
'#'
);
hash
=
wcschr
(
pwzTarget
,
'#'
);
if
(
hash
)
{
if
(
hash
==
pwzTarget
)
...
...
@@ -280,11 +280,11 @@ HRESULT WINAPI HlinkIsShortcut(LPCWSTR pwzFileName)
if
(
!
pwzFileName
)
return
E_INVALIDARG
;
len
=
strlenW
(
pwzFileName
)
-
4
;
len
=
l
strlenW
(
pwzFileName
)
-
4
;
if
(
len
<
0
)
return
S_FALSE
;
return
strcmpiW
(
pwzFileName
+
len
,
url_ext
)
?
S_FALSE
:
S_OK
;
return
wcsicmp
(
pwzFileName
+
len
,
url_ext
)
?
S_FALSE
:
S_OK
;
}
/***********************************************************************
...
...
@@ -389,7 +389,7 @@ HRESULT WINAPI HlinkParseDisplayName(LPBC pibc, LPCWSTR pwzDisplayName, BOOL fNo
if
(
fNoForceAbs
)
FIXME
(
"Unsupported fNoForceAbs
\n
"
);
if
(
!
strncmpiW
(
pwzDisplayName
,
file_colonW
,
ARRAY_SIZE
(
file_colonW
)))
{
if
(
!
wcsnicmp
(
pwzDisplayName
,
file_colonW
,
ARRAY_SIZE
(
file_colonW
)))
{
pwzDisplayName
+=
ARRAY_SIZE
(
file_colonW
);
eaten
+=
ARRAY_SIZE
(
file_colonW
);
...
...
@@ -409,7 +409,7 @@ HRESULT WINAPI HlinkParseDisplayName(LPBC pibc, LPCWSTR pwzDisplayName, BOOL fNo
hres
=
CreateFileMoniker
(
pwzDisplayName
,
ppimk
);
if
(
SUCCEEDED
(
hres
))
*
pcchEaten
=
eaten
+
strlenW
(
pwzDisplayName
);
*
pcchEaten
=
eaten
+
l
strlenW
(
pwzDisplayName
);
return
hres
;
}
...
...
dlls/hlink/hlink_private.h
View file @
b14dffa6
...
...
@@ -28,7 +28,6 @@
#include "hlink.h"
#include "wine/heap.h"
#include "wine/unicode.h"
extern
HRESULT
HLink_Constructor
(
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
extern
HRESULT
HLinkBrowseContext_Constructor
(
IUnknown
*
,
REFIID
,
void
**
)
DECLSPEC_HIDDEN
;
...
...
@@ -40,7 +39,7 @@ static inline LPWSTR hlink_strdupW(LPCWSTR str)
if
(
str
)
{
DWORD
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
heap_alloc
(
size
);
memcpy
(
ret
,
str
,
size
);
}
...
...
@@ -55,7 +54,7 @@ static inline LPWSTR hlink_co_strdupW(LPCWSTR str)
if
(
str
)
{
DWORD
size
;
size
=
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
size
=
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
ret
=
CoTaskMemAlloc
(
size
);
memcpy
(
ret
,
str
,
size
);
}
...
...
dlls/hlink/link.c
View file @
b14dffa6
...
...
@@ -242,7 +242,7 @@ static HRESULT WINAPI IHlink_fnSetMonikerReference( IHlink* iface,
CreateBindCtx
(
0
,
&
pbc
);
IMoniker_GetDisplayName
(
This
->
Moniker
,
pbc
,
NULL
,
&
display_name
);
IBindCtx_Release
(
pbc
);
This
->
absolute
=
display_name
&&
strchrW
(
display_name
,
':'
);
This
->
absolute
=
display_name
&&
wcschr
(
display_name
,
':'
);
CoTaskMemFree
(
display_name
);
}
}
...
...
@@ -290,7 +290,7 @@ static HRESULT WINAPI IHlink_fnSetStringReference(IHlink* iface,
if
(
FAILED
(
r
))
{
LPCWSTR
p
=
strchrW
(
pwzTarget
,
':'
);
LPCWSTR
p
=
wcschr
(
pwzTarget
,
':'
);
if
(
p
&&
(
p
-
pwzTarget
>
1
))
r
=
CreateURLMoniker
(
NULL
,
pwzTarget
,
&
pMon
);
else
...
...
@@ -739,7 +739,7 @@ static HRESULT write_hlink_string(IStream *pStm, LPCWSTR str)
TRACE
(
"(%p, %s)
\n
"
,
pStm
,
debugstr_w
(
str
));
len
=
strlenW
(
str
)
+
1
;
len
=
l
strlenW
(
str
)
+
1
;
hr
=
IStream_Write
(
pStm
,
&
len
,
sizeof
(
len
),
NULL
);
if
(
FAILED
(
hr
))
return
hr
;
...
...
@@ -752,7 +752,7 @@ static HRESULT write_hlink_string(IStream *pStm, LPCWSTR str)
static
inline
ULONG
size_hlink_string
(
LPCWSTR
str
)
{
return
sizeof
(
DWORD
)
+
(
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
return
sizeof
(
DWORD
)
+
(
l
strlenW
(
str
)
+
1
)
*
sizeof
(
WCHAR
);
}
static
HRESULT
read_hlink_string
(
IStream
*
pStm
,
LPWSTR
*
out_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