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
15b17a0e
Commit
15b17a0e
authored
Sep 15, 2018
by
Michael Stefaniuc
Committed by
Alexandre Julliard
Sep 17, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shlwapi: Avoid a temporary variable.
Signed-off-by:
Michael Stefaniuc
<
mstefani@winehq.org
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
d33f0674
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
thread.c
dlls/shlwapi/thread.c
+1
-2
No files found.
dlls/shlwapi/thread.c
View file @
15b17a0e
...
@@ -491,7 +491,6 @@ HANDLE WINAPI SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
...
@@ -491,7 +491,6 @@ HANDLE WINAPI SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
static
const
WCHAR
szPrefix
[]
=
{
's'
,
'h'
,
'e'
,
'l'
,
'l'
,
'.'
,
'\0'
};
static
const
WCHAR
szPrefix
[]
=
{
's'
,
'h'
,
'e'
,
'l'
,
'l'
,
'.'
,
'\0'
};
const
int
iPrefixLen
=
6
;
const
int
iPrefixLen
=
6
;
WCHAR
szBuff
[
MAX_PATH
];
WCHAR
szBuff
[
MAX_PATH
];
const
int
iBuffLen
=
sizeof
(
szBuff
)
/
sizeof
(
WCHAR
);
SECURITY_DESCRIPTOR
sd
;
SECURITY_DESCRIPTOR
sd
;
SECURITY_ATTRIBUTES
sAttr
,
*
pSecAttr
;
SECURITY_ATTRIBUTES
sAttr
,
*
pSecAttr
;
HANDLE
hRet
;
HANDLE
hRet
;
...
@@ -501,7 +500,7 @@ HANDLE WINAPI SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
...
@@ -501,7 +500,7 @@ HANDLE WINAPI SHGlobalCounterCreateNamedW(LPCWSTR lpszName, DWORD iInitial)
/* Create Semaphore name */
/* Create Semaphore name */
memcpy
(
szBuff
,
szPrefix
,
(
iPrefixLen
+
1
)
*
sizeof
(
WCHAR
));
memcpy
(
szBuff
,
szPrefix
,
(
iPrefixLen
+
1
)
*
sizeof
(
WCHAR
));
if
(
lpszName
)
if
(
lpszName
)
StrCpyNW
(
szBuff
+
iPrefixLen
,
lpszName
,
iBuffLen
-
iPrefixLen
);
StrCpyNW
(
szBuff
+
iPrefixLen
,
lpszName
,
ARRAY_SIZE
(
szBuff
)
-
iPrefixLen
);
/* Initialise security attributes */
/* Initialise security attributes */
pSecAttr
=
CreateAllAccessSecurityAttributes
(
&
sAttr
,
&
sd
,
0
);
pSecAttr
=
CreateAllAccessSecurityAttributes
(
&
sAttr
,
&
sd
,
0
);
...
...
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