Fixed warnings.

This commit is contained in:
Alexandre Julliard 2000-11-25 01:40:34 +00:00
parent a59324db91
commit bd14f66e84
2 changed files with 4 additions and 4 deletions

View File

@ -249,7 +249,7 @@ HGLOBALStreamImpl* HGLOBALStreamImpl_Construct(
/*
* This method will allocate a handle if one is not supplied.
*/
if (newStream->supportHandle == NULL)
if (!newStream->supportHandle)
{
newStream->supportHandle = GlobalAlloc(GMEM_MOVEABLE | GMEM_NODISCARD |
GMEM_SHARE, 0);

View File

@ -213,7 +213,7 @@ static BOOL BIGBLOCKFILE_FileInit(LPBIGBLOCKFILE This, HANDLE hFile)
0, 0,
NULL);
if (This->hfilemap == NULL)
if (!This->hfilemap)
{
CloseHandle(This->hfile);
return FALSE;
@ -237,7 +237,7 @@ static BOOL BIGBLOCKFILE_FileInit(LPBIGBLOCKFILE This, HANDLE hFile)
static BOOL BIGBLOCKFILE_MemInit(LPBIGBLOCKFILE This, ILockBytes* plkbyt)
{
This->hfile = 0;
This->hfilemap = NULL;
This->hfilemap = 0;
/*
* Retrieve the handle to the byte array from the LockByte object.
@ -404,7 +404,7 @@ void BIGBLOCKFILE_SetSize(LPBIGBLOCKFILE This, ULARGE_INTEGER newSize)
* close file-mapping object, must be done before call to SetEndFile
*/
CloseHandle(This->hfilemap);
This->hfilemap = NULL;
This->hfilemap = 0;
/*
* BEGIN HACK