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
21241432
Commit
21241432
authored
Sep 17, 2009
by
Henri Verbeet
Committed by
Alexandre Julliard
Sep 17, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Get rid of a redundant strcpy().
parent
5b600b57
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
wined3d_main.c
dlls/wined3d/wined3d_main.c
+6
-2
No files found.
dlls/wined3d/wined3d_main.c
View file @
21241432
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
* Copyright 2002-2003 Raphael Junqueira
* Copyright 2002-2003 Raphael Junqueira
* Copyright 2004 Jason Edmeades
* Copyright 2004 Jason Edmeades
* Copyright 2007-2008 Stefan Dösinger for CodeWeavers
* Copyright 2007-2008 Stefan Dösinger for CodeWeavers
* Copyright 2009 Henri Verbeet for CodeWeavers
*
*
* This library is free software; you can redistribute it and/or
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* modify it under the terms of the GNU Lesser General Public
...
@@ -293,8 +294,11 @@ static BOOL wined3d_init(HINSTANCE hInstDLL)
...
@@ -293,8 +294,11 @@ static BOOL wined3d_init(HINSTANCE hInstDLL)
}
}
if
(
!
get_config_key
(
hkey
,
appkey
,
"WineLogo"
,
buffer
,
size
)
)
if
(
!
get_config_key
(
hkey
,
appkey
,
"WineLogo"
,
buffer
,
size
)
)
{
{
wined3d_settings
.
logo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
strlen
(
buffer
)
+
1
);
size_t
len
=
strlen
(
buffer
)
+
1
;
if
(
wined3d_settings
.
logo
)
strcpy
(
wined3d_settings
.
logo
,
buffer
);
wined3d_settings
.
logo
=
HeapAlloc
(
GetProcessHeap
(),
0
,
len
);
if
(
!
wined3d_settings
.
logo
)
ERR
(
"Failed to allocate logo path memory.
\n
"
);
else
memcpy
(
wined3d_settings
.
logo
,
buffer
,
len
);
}
}
if
(
!
get_config_key
(
hkey
,
appkey
,
"Multisampling"
,
buffer
,
size
)
)
if
(
!
get_config_key
(
hkey
,
appkey
,
"Multisampling"
,
buffer
,
size
)
)
{
{
...
...
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