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
f6cbd9a0
Commit
f6cbd9a0
authored
Feb 29, 2008
by
Andrew Talbot
Committed by
Alexandre Julliard
Mar 01, 2008
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
itss: Assign to structs instead of using memcpy.
parent
5e8253aa
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
5 deletions
+5
-5
moniker.c
dlls/itss/moniker.c
+1
-1
protocol.c
dlls/itss/protocol.c
+1
-1
storage.c
dlls/itss/storage.c
+3
-3
No files found.
dlls/itss/moniker.c
View file @
f6cbd9a0
...
@@ -99,7 +99,7 @@ static HRESULT WINAPI ITS_IMonikerImpl_GetClassID(
...
@@ -99,7 +99,7 @@ static HRESULT WINAPI ITS_IMonikerImpl_GetClassID(
ITS_IMonikerImpl
*
This
=
(
ITS_IMonikerImpl
*
)
iface
;
ITS_IMonikerImpl
*
This
=
(
ITS_IMonikerImpl
*
)
iface
;
TRACE
(
"%p %p
\n
"
,
This
,
pClassID
);
TRACE
(
"%p %p
\n
"
,
This
,
pClassID
);
memcpy
(
pClassID
,
&
CLSID_ITStorage
,
sizeof
(
CLSID
)
)
;
*
pClassID
=
CLSID_ITStorage
;
return
S_OK
;
return
S_OK
;
}
}
...
...
dlls/itss/protocol.c
View file @
f6cbd9a0
...
@@ -234,7 +234,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
...
@@ -234,7 +234,7 @@ static HRESULT WINAPI ITSProtocol_Start(IInternetProtocol *iface, LPCWSTR szUrl,
release_chm
(
This
);
/* Native leaks handle here */
release_chm
(
This
);
/* Native leaks handle here */
This
->
chm_file
=
chm_file
;
This
->
chm_file
=
chm_file
;
memcpy
(
&
This
->
chm_object
,
&
chm_object
,
sizeof
(
chm_object
))
;
This
->
chm_object
=
chm_object
;
hres
=
IInternetProtocolSink_ReportData
(
pOIProtSink
,
hres
=
IInternetProtocolSink_ReportData
(
pOIProtSink
,
BSCF_FIRSTDATANOTIFICATION
|
BSCF_DATAFULLYAVAILABLE
,
BSCF_FIRSTDATANOTIFICATION
|
BSCF_DATAFULLYAVAILABLE
,
...
...
dlls/itss/storage.c
View file @
f6cbd9a0
...
@@ -445,7 +445,7 @@ static int ITSS_chm_enumerator(
...
@@ -445,7 +445,7 @@ static int ITSS_chm_enumerator(
TRACE
(
"adding %s to enumeration
\n
"
,
debugstr_w
(
ui
->
path
)
);
TRACE
(
"adding %s to enumeration
\n
"
,
debugstr_w
(
ui
->
path
)
);
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
enum_info
)
);
info
=
HeapAlloc
(
GetProcessHeap
(),
0
,
sizeof
(
struct
enum_info
)
);
memcpy
(
&
info
->
ui
,
ui
,
sizeof
info
->
ui
)
;
info
->
ui
=
*
ui
;
info
->
next
=
NULL
;
info
->
next
=
NULL
;
info
->
prev
=
stgenum
->
last
;
info
->
prev
=
stgenum
->
last
;
...
@@ -788,7 +788,7 @@ static HRESULT WINAPI ITSS_IStream_Stat(
...
@@ -788,7 +788,7 @@ static HRESULT WINAPI ITSS_IStream_Stat(
pstatstg
->
type
=
STGTY_STREAM
;
pstatstg
->
type
=
STGTY_STREAM
;
pstatstg
->
cbSize
.
QuadPart
=
This
->
ui
.
length
;
pstatstg
->
cbSize
.
QuadPart
=
This
->
ui
.
length
;
pstatstg
->
grfMode
=
STGM_READ
;
pstatstg
->
grfMode
=
STGM_READ
;
memcpy
(
&
pstatstg
->
clsid
,
&
CLSID_ITStorage
,
sizeof
(
CLSID
)
)
;
pstatstg
->
clsid
=
CLSID_ITStorage
;
return
S_OK
;
return
S_OK
;
}
}
...
@@ -828,7 +828,7 @@ static IStream_Impl *ITSS_create_stream(
...
@@ -828,7 +828,7 @@ static IStream_Impl *ITSS_create_stream(
stm
->
vtbl_IStream
=
&
ITSS_IStream_vtbl
;
stm
->
vtbl_IStream
=
&
ITSS_IStream_vtbl
;
stm
->
ref
=
1
;
stm
->
ref
=
1
;
stm
->
addr
=
0
;
stm
->
addr
=
0
;
memcpy
(
&
stm
->
ui
,
ui
,
sizeof
stm
->
ui
)
;
stm
->
ui
=
*
ui
;
stm
->
stg
=
stg
;
stm
->
stg
=
stg
;
IStorage_AddRef
(
(
IStorage
*
)
stg
);
IStorage_AddRef
(
(
IStorage
*
)
stg
);
...
...
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