Home | Info | Community | Development | myReactOS | Contact Us
[static]
Definition at line 499 of file memlockbytes.c.
Referenced by HGLOBALLockBytesImpl_WriteAt().
{ HGLOBALLockBytesImpl* const This=(HGLOBALLockBytesImpl*)iface; HGLOBAL supportHandle; /* * As documented. */ if (libNewSize.u.HighPart != 0) return STG_E_INVALIDFUNCTION; if (This->byteArraySize.u.LowPart == libNewSize.u.LowPart) return S_OK; /* * Re allocate the HGlobal to fit the new size of the stream. */ supportHandle = GlobalReAlloc(This->supportHandle, libNewSize.u.LowPart, 0); if (supportHandle == 0) return STG_E_MEDIUMFULL; This->supportHandle = supportHandle; This->byteArraySize.u.LowPart = libNewSize.u.LowPart; return S_OK; }