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
6664991f
Commit
6664991f
authored
Oct 14, 2022
by
Alex Henrie
Committed by
Alexandre Julliard
Oct 17, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shell32: Move strndupW to dde.c.
parent
2dcc5a70
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
13 deletions
+13
-13
dde.c
dlls/shell32/dde.c
+13
-0
shell32_main.h
dlls/shell32/shell32_main.h
+0
-13
No files found.
dlls/shell32/dde.c
View file @
6664991f
...
...
@@ -54,6 +54,19 @@ static const char *debugstr_hsz( HSZ hsz )
return
debugstr_w
(
buffer
);
}
static
WCHAR
*
strndupW
(
const
WCHAR
*
src
,
DWORD
len
)
{
WCHAR
*
dest
;
if
(
!
src
)
return
NULL
;
dest
=
heap_alloc
((
len
+
1
)
*
sizeof
(
*
dest
));
if
(
dest
)
{
memcpy
(
dest
,
src
,
len
*
sizeof
(
WCHAR
));
dest
[
len
]
=
'\0'
;
}
return
dest
;
}
static
inline
BOOL
Dde_OnConnect
(
HSZ
hszTopic
,
HSZ
hszService
)
{
if
((
hszTopic
==
hszProgmanTopic
)
&&
(
hszService
==
hszProgmanService
))
...
...
dlls/shell32/shell32_main.h
View file @
6664991f
...
...
@@ -241,19 +241,6 @@ static inline WCHAR *strdupW(const WCHAR *src)
return
dest
;
}
static
inline
WCHAR
*
strndupW
(
const
WCHAR
*
src
,
DWORD
len
)
{
WCHAR
*
dest
;
if
(
!
src
)
return
NULL
;
dest
=
heap_alloc
((
len
+
1
)
*
sizeof
(
*
dest
));
if
(
dest
)
{
memcpy
(
dest
,
src
,
len
*
sizeof
(
WCHAR
));
dest
[
len
]
=
'\0'
;
}
return
dest
;
}
static
inline
WCHAR
*
strdupAtoW
(
const
char
*
str
)
{
WCHAR
*
ret
;
...
...
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