Remove the remaining casts of NULL.
This commit is contained in:
parent
d4b8948ce3
commit
4f199a10ad
|
@ -752,7 +752,7 @@ static HRESULT IOCS_Detach( IOCS *This ) /* remove subclassing */
|
|||
if ( This->hWnd )
|
||||
{
|
||||
SetWindowLongPtrW( This->hWnd, GWLP_WNDPROC, (ULONG_PTR) This->OrigWndProc );
|
||||
SetWindowLongPtrW( This->hWnd, GWLP_USERDATA, (LONG_PTR) NULL );
|
||||
SetWindowLongPtrW( This->hWnd, GWLP_USERDATA, 0 );
|
||||
This->hWnd = NULL;
|
||||
}
|
||||
if ( This->control )
|
||||
|
|
|
@ -1952,7 +1952,7 @@ static HRESULT WINAPI IDirect3DDevice8Impl_GetPixelShader(LPDIRECT3DDEVICE8 ifac
|
|||
IWineD3DPixelShader_Release(object);
|
||||
*ppShader = d3d8_shader->handle;
|
||||
} else {
|
||||
*ppShader = (DWORD)NULL;
|
||||
*ppShader = 0;
|
||||
}
|
||||
|
||||
TRACE("(%p) : returning %#x\n", This, *ppShader);
|
||||
|
|
|
@ -9603,7 +9603,7 @@ static void texop_range_test(IDirect3DDevice9 *device)
|
|||
ok(SUCCEEDED(hr), "SetTextureStageState failed with 0x%08x\n", hr);
|
||||
hr = IDirect3DDevice9_SetTextureStageState(device, 1, D3DTSS_COLOROP, D3DTOP_DISABLE);
|
||||
ok(SUCCEEDED(hr), "SetTextureStageState failed with 0x%08x\n", hr);
|
||||
hr = IDirect3DDevice9_SetTexture(device, 1, (IDirect3DBaseTexture9 *)NULL);
|
||||
hr = IDirect3DDevice9_SetTexture(device, 1, NULL);
|
||||
ok(SUCCEEDED(hr), "SetTexture failed with 0x%08x\n", hr);
|
||||
IDirect3DTexture9_Release(texture);
|
||||
}
|
||||
|
|
|
@ -117,7 +117,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicComposerImpl (LPCGUID lpcGUID, LPVOID* pp
|
|||
|
||||
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicComposerImpl));
|
||||
if (NULL == obj) {
|
||||
*ppobj = (LPDIRECTMUSICCOMPOSER) NULL;
|
||||
*ppobj = NULL;
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
obj->lpVtbl = &DirectMusicComposer_Vtbl;
|
||||
|
|
|
@ -1020,7 +1020,7 @@ HRESULT WINAPI DMUSIC_CreateDirectMusicPerformanceImpl (LPCGUID lpcGUID, LPVOID
|
|||
|
||||
obj = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, sizeof(IDirectMusicPerformance8Impl));
|
||||
if (NULL == obj) {
|
||||
*ppobj = (LPDIRECTMUSICPERFORMANCE8)NULL;
|
||||
*ppobj = NULL;
|
||||
return E_OUTOFMEMORY;
|
||||
}
|
||||
obj->lpVtbl = &DirectMusicPerformance8_Vtbl;
|
||||
|
|
|
@ -2147,7 +2147,7 @@ DWORD WINAPI WNetGetNetworkInformationW( LPCWSTR lpProvider,
|
|||
providerTable->table[providerIndex].dwSpecVersion;
|
||||
lpNetInfoStruct->dwStatus = NO_ERROR;
|
||||
lpNetInfoStruct->dwCharacteristics = 0;
|
||||
lpNetInfoStruct->dwHandle = (ULONG_PTR)NULL;
|
||||
lpNetInfoStruct->dwHandle = 0;
|
||||
lpNetInfoStruct->wNetType =
|
||||
HIWORD(providerTable->table[providerIndex].dwNetType);
|
||||
lpNetInfoStruct->dwPrinters = -1;
|
||||
|
|
|
@ -1849,7 +1849,7 @@ static void test_Installer_RegistryValue(void)
|
|||
"RegSetValueExW failed\n");
|
||||
ok(!RegSetValueExW(hkey,szSix,0,REG_QWORD, (const BYTE *)qw, 8),
|
||||
"RegSetValueExW failed\n");
|
||||
ok(!RegSetValueExW(hkey,szSeven,0,REG_NONE, (const BYTE *)NULL, 0),
|
||||
ok(!RegSetValueExW(hkey,szSeven,0,REG_NONE, NULL, 0),
|
||||
"RegSetValueExW failed\n");
|
||||
|
||||
ok(!RegSetValueExW(hkey,NULL,0,REG_SZ, (const BYTE *)szOne, sizeof(szOne)),
|
||||
|
|
|
@ -40,7 +40,7 @@ static void test_ctime(void)
|
|||
}
|
||||
static void test_gmtime(void)
|
||||
{
|
||||
time_t gmt = (time_t)NULL;
|
||||
time_t gmt = 0;
|
||||
struct tm* gmt_tm = gmtime(&gmt);
|
||||
if(gmt_tm == 0)
|
||||
{
|
||||
|
|
|
@ -1677,7 +1677,7 @@ BOOL WINAPI RSAENH_CPCreateHash(HCRYPTPROV hProv, ALG_ID Algid, HCRYPTKEY hKey,
|
|||
pCryptHash->hKey = hKey;
|
||||
pCryptHash->hProv = hProv;
|
||||
pCryptHash->dwState = RSAENH_HASHSTATE_HASHING;
|
||||
pCryptHash->pHMACInfo = (PHMAC_INFO)NULL;
|
||||
pCryptHash->pHMACInfo = NULL;
|
||||
pCryptHash->dwHashSize = peaAlgidInfo->dwDefaultLen >> 3;
|
||||
init_data_blob(&pCryptHash->tpPRFParams.blobLabel);
|
||||
init_data_blob(&pCryptHash->tpPRFParams.blobSeed);
|
||||
|
|
|
@ -45,7 +45,7 @@ void WINAPI BootTask16(void)
|
|||
SEGPTR WINAPI StackLinearToSegmented16(WORD w1, WORD w2)
|
||||
{
|
||||
FIXME("(%d,%d):stub.\n",w1,w2);
|
||||
return (SEGPTR)NULL;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -2834,7 +2834,7 @@ HMMIO16 WINAPI mmioOpen16(LPSTR szFileName, MMIOINFO16* lpmmioinfo16,
|
|||
*/
|
||||
MMRESULT16 WINAPI mmioClose16(HMMIO16 hmmio, UINT16 uFlags)
|
||||
{
|
||||
MMIO_SetSegmentedBuffer(HMMIO_32(hmmio), (SEGPTR)NULL, TRUE);
|
||||
MMIO_SetSegmentedBuffer(HMMIO_32(hmmio), 0, TRUE);
|
||||
return mmioClose(HMMIO_32(hmmio), uFlags);
|
||||
}
|
||||
|
||||
|
|
|
@ -4390,7 +4390,7 @@ SOCKET WINAPI WSAAccept( SOCKET s, struct WS_sockaddr *addr, LPINT addrlen,
|
|||
CallerId.len = sizeof(src_addr);
|
||||
|
||||
CallerData.buf = NULL;
|
||||
CallerData.len = (ULONG)NULL;
|
||||
CallerData.len = 0;
|
||||
|
||||
WS_getsockname(cs, &dst_addr, &size);
|
||||
|
||||
|
|
|
@ -532,7 +532,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPWSTR pHostName)
|
|||
tvins.u.item.iSelectedImage = Image_Root;
|
||||
tvins.u.item.cChildren = 5;
|
||||
/* Save the heading level in the item's application-defined data area. */
|
||||
tvins.u.item.lParam = (LPARAM)NULL;
|
||||
tvins.u.item.lParam = 0;
|
||||
tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
|
||||
tvins.hParent = TVI_ROOT;
|
||||
/* Add the item to the tree view control. */
|
||||
|
|
|
@ -1076,7 +1076,7 @@ int APIENTRY WinMain(HINSTANCE hInstance,
|
|||
tkp.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
|
||||
|
||||
/* Get the debug privilege for this process. */
|
||||
AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, (PTOKEN_PRIVILEGES)NULL, 0);
|
||||
AdjustTokenPrivileges(hToken, FALSE, &tkp, 0, NULL, 0);
|
||||
}
|
||||
|
||||
/* Load our settings from the registry */
|
||||
|
|
Loading…
Reference in New Issue