mirror of
https://github.com/reactos/reactos.git
synced 2024-07-31 08:39:05 +00:00
Match whitespace to winehq
svn path=/trunk/; revision=10961
This commit is contained in:
parent
2ff29d7662
commit
ffa3b3d7fd
|
@ -106,7 +106,7 @@ HRESULT CreateStreamOnFile (LPCWSTR pszFilename, DWORD grfMode, IStream ** ppstm
|
|||
|
||||
TRACE("Opening %s\n", debugstr_w(pszFilename) );
|
||||
|
||||
handle = CreateFileW( pszFilename, access, FILE_SHARE_READ, NULL, creat, 0, NULL );
|
||||
handle = CreateFileW( pszFilename, access, FILE_SHARE_READ, NULL, creat, 0, NULL );
|
||||
if( handle == INVALID_HANDLE_VALUE )
|
||||
return E_FAIL;
|
||||
|
||||
|
@ -197,17 +197,17 @@ static HRESULT WINAPI IStream_fnRead (IStream * iface, void* pv, ULONG cb, ULONG
|
|||
|
||||
static HRESULT WINAPI IStream_fnWrite (IStream * iface, const void* pv, ULONG cb, ULONG* pcbWritten)
|
||||
{
|
||||
DWORD dummy_count;
|
||||
ISHFileStream *This = (ISHFileStream *)iface;
|
||||
DWORD dummy_count;
|
||||
ISHFileStream *This = (ISHFileStream *)iface;
|
||||
|
||||
TRACE("(%p)\n",This);
|
||||
|
||||
if( !pv )
|
||||
return STG_E_INVALIDPOINTER;
|
||||
|
||||
/* WriteFile() doesn't allow to specify NULL as write count pointer */
|
||||
if (!pcbWritten)
|
||||
pcbWritten = &dummy_count;
|
||||
/* WriteFile() doesn't allow to specify NULL as write count pointer */
|
||||
if (!pcbWritten)
|
||||
pcbWritten = &dummy_count;
|
||||
|
||||
if( ! WriteFile( This->handle, pv, cb, pcbWritten, NULL ) )
|
||||
return E_FAIL;
|
||||
|
|
Loading…
Reference in a new issue