mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 06:30:37 +00:00
shell32: Do not cast NULL.
This commit is contained in:
parent
ea3980974d
commit
cc41ac4c16
@ -533,7 +533,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
|||||||
WCHAR *msg;
|
WCHAR *msg;
|
||||||
int len;
|
int len;
|
||||||
|
|
||||||
len = SendMessageW(This->hwndListBox, LB_GETTEXTLEN, sel, (LPARAM)NULL);
|
len = SendMessageW(This->hwndListBox, LB_GETTEXTLEN, sel, 0);
|
||||||
msg = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (len+1)*sizeof(WCHAR));
|
msg = HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, (len+1)*sizeof(WCHAR));
|
||||||
SendMessageW(This->hwndListBox, LB_GETTEXT, sel, (LPARAM)msg);
|
SendMessageW(This->hwndListBox, LB_GETTEXT, sel, (LPARAM)msg);
|
||||||
SendMessageW(hwnd, WM_SETTEXT, 0, (LPARAM)msg);
|
SendMessageW(hwnd, WM_SETTEXT, 0, (LPARAM)msg);
|
||||||
@ -555,7 +555,7 @@ static LRESULT APIENTRY ACEditSubclassProc(HWND hwnd, UINT uMsg, WPARAM wParam,
|
|||||||
}
|
}
|
||||||
if (This->options & ACO_AUTOAPPEND) {
|
if (This->options & ACO_AUTOAPPEND) {
|
||||||
DWORD b;
|
DWORD b;
|
||||||
SendMessageW(hwnd, EM_GETSEL, (WPARAM)&b, (LPARAM)NULL);
|
SendMessageW(hwnd, EM_GETSEL, (WPARAM)&b, 0);
|
||||||
if (b>1) {
|
if (b>1) {
|
||||||
hwndText[b-1] = '\0';
|
hwndText[b-1] = '\0';
|
||||||
} else {
|
} else {
|
||||||
|
@ -319,7 +319,7 @@ SEGPTR WINAPI FindEnvironmentString16(LPCSTR str)
|
|||||||
|
|
||||||
if( lpString ) /* offset should be small enough */
|
if( lpString ) /* offset should be small enough */
|
||||||
return spEnv + (lpString - lpEnv);
|
return spEnv + (lpString - lpEnv);
|
||||||
return (SEGPTR)NULL;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
Loading…
Reference in New Issue
Block a user