mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 01:25:41 +00:00
sync hlink with wine 1.1.4
svn path=/trunk/; revision=36217
This commit is contained in:
parent
d827fb07fa
commit
172034efd8
1 changed files with 2 additions and 2 deletions
|
@ -676,7 +676,7 @@ static HRESULT WINAPI IPersistStream_fnLoad(IPersistStream* iface,
|
||||||
DWORD read;
|
DWORD read;
|
||||||
HlinkImpl *This = HlinkImpl_from_IPersistStream(iface);
|
HlinkImpl *This = HlinkImpl_from_IPersistStream(iface);
|
||||||
|
|
||||||
r = IStream_Read(pStm, &hdr, sizeof(hdr), &read);
|
r = IStream_Read(pStm, hdr, sizeof(hdr), &read);
|
||||||
if (read != sizeof(hdr) || (hdr[0] != HLINK_SAVE_MAGIC))
|
if (read != sizeof(hdr) || (hdr[0] != HLINK_SAVE_MAGIC))
|
||||||
{
|
{
|
||||||
r = E_FAIL;
|
r = E_FAIL;
|
||||||
|
@ -749,7 +749,7 @@ static HRESULT WINAPI IPersistStream_fnSave(IPersistStream* iface,
|
||||||
if (This->TargetFrameName)
|
if (This->TargetFrameName)
|
||||||
hdr[1] |= HLINK_SAVE_TARGET_FRAME_PRESENT;
|
hdr[1] |= HLINK_SAVE_TARGET_FRAME_PRESENT;
|
||||||
|
|
||||||
IStream_Write(pStm, &hdr, sizeof(hdr), NULL);
|
IStream_Write(pStm, hdr, sizeof(hdr), NULL);
|
||||||
|
|
||||||
if (This->TargetFrameName)
|
if (This->TargetFrameName)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue