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
9593c4ea
Commit
9593c4ea
authored
May 23, 2005
by
Antoine Chavasse
Committed by
Alexandre Julliard
May 23, 2005
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added traces in GetPrivateData and SetPrivateData.
Made SetPrivateData actually store the data from the buffer as well as its size.
parent
7016b999
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
main.c
dlls/ddraw/dsurface/main.c
+8
-0
No files found.
dlls/ddraw/dsurface/main.c
View file @
9593c4ea
...
...
@@ -1000,6 +1000,8 @@ Main_DirectDrawSurface_GetPrivateData(LPDIRECTDRAWSURFACE7 iface,
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
PrivateData
*
data
;
TRACE
(
"(%p)->(%p), size = %ld
\n
"
,
This
,
pBuffer
,
*
pcbBufferSize
);
data
=
find_private_data
(
This
,
tag
);
if
(
data
==
NULL
)
return
DDERR_NOTFOUND
;
...
...
@@ -1370,6 +1372,8 @@ Main_DirectDrawSurface_SetPrivateData(LPDIRECTDRAWSURFACE7 iface,
PrivateData
*
data
;
IDirectDrawSurfaceImpl
*
This
=
(
IDirectDrawSurfaceImpl
*
)
iface
;
TRACE
(
"(%p)->(%p), size=%ld
\n
"
,
This
,
pData
,
cbSize
);
data
=
find_private_data
(
This
,
tag
);
if
(
data
==
NULL
)
{
...
...
@@ -1394,6 +1398,9 @@ Main_DirectDrawSurface_SetPrivateData(LPDIRECTDRAWSURFACE7 iface,
HeapFree
(
GetProcessHeap
(),
0
,
data
);
return
DDERR_OUTOFMEMORY
;
}
data
->
size
=
cbSize
;
memcpy
(
data
->
ptr
.
data
,
pData
,
data
->
size
);
}
/* link it in */
...
...
@@ -1412,6 +1419,7 @@ Main_DirectDrawSurface_SetPrivateData(LPDIRECTDRAWSURFACE7 iface,
* guarantee SetPrivateData working when using LPUNKNOWN or data
* that is no larger than the old data. */
FIXME
(
"Replacing existing private data not implemented yet.
\n
"
);
return
E_FAIL
;
}
}
...
...
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