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
92dc7401
Commit
92dc7401
authored
Nov 24, 2006
by
Andrew Talbot
Committed by
Alexandre Julliard
Nov 27, 2006
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wined3d: Cast-qual warnings fix.
parent
f3a515ce
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
6 deletions
+12
-6
pixelshader.c
dlls/wined3d/pixelshader.c
+6
-3
vertexshader.c
dlls/wined3d/vertexshader.c
+6
-3
No files found.
dlls/wined3d/pixelshader.c
View file @
92dc7401
...
...
@@ -938,9 +938,12 @@ static HRESULT WINAPI IWineD3DPixelShaderImpl_SetFunction(IWineD3DPixelShader *i
TRACE
(
"(%p) : Copying the function
\n
"
,
This
);
if
(
NULL
!=
pFunction
)
{
This
->
baseShader
.
function
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
baseShader
.
functionLength
);
if
(
!
This
->
baseShader
.
function
)
return
E_OUTOFMEMORY
;
memcpy
((
void
*
)
This
->
baseShader
.
function
,
pFunction
,
This
->
baseShader
.
functionLength
);
void
*
function
;
function
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
baseShader
.
functionLength
);
if
(
!
function
)
return
E_OUTOFMEMORY
;
memcpy
(
function
,
pFunction
,
This
->
baseShader
.
functionLength
);
This
->
baseShader
.
function
=
function
;
}
else
{
This
->
baseShader
.
function
=
NULL
;
}
...
...
dlls/wined3d/vertexshader.c
View file @
92dc7401
...
...
@@ -1214,9 +1214,12 @@ static HRESULT WINAPI IWineD3DVertexShaderImpl_SetFunction(IWineD3DVertexShader
/* copy the function ... because it will certainly be released by application */
if
(
NULL
!=
pFunction
)
{
This
->
baseShader
.
function
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
baseShader
.
functionLength
);
if
(
!
This
->
baseShader
.
function
)
return
E_OUTOFMEMORY
;
memcpy
((
void
*
)
This
->
baseShader
.
function
,
pFunction
,
This
->
baseShader
.
functionLength
);
void
*
function
;
function
=
HeapAlloc
(
GetProcessHeap
(),
HEAP_ZERO_MEMORY
,
This
->
baseShader
.
functionLength
);
if
(
!
function
)
return
E_OUTOFMEMORY
;
memcpy
(
function
,
pFunction
,
This
->
baseShader
.
functionLength
);
This
->
baseShader
.
function
=
function
;
}
else
{
This
->
baseShader
.
function
=
NULL
;
}
...
...
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