mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-06 02:28:19 +00:00
browseui: Remove superfluous casts from/to void pointers.
This commit is contained in:
parent
a50629fad5
commit
3a95eaab9a
|
@ -146,7 +146,7 @@ static HRESULT ClassFactory_Constructor(LPFNCONSTRUCTOR ctor, LPVOID *ppvOut)
|
|||
This->vtbl = &ClassFactoryVtbl;
|
||||
This->ref = 1;
|
||||
This->ctor = ctor;
|
||||
*ppvOut = (LPVOID)This;
|
||||
*ppvOut = This;
|
||||
TRACE("Created class factory %p\n", This);
|
||||
BROWSEUI_refCount++;
|
||||
return S_OK;
|
||||
|
|
|
@ -223,7 +223,7 @@ static DWORD WINAPI dialog_thread(LPVOID lpParameter)
|
|||
{
|
||||
/* Note: until we set the hEvent in WM_INITDIALOG, the ProgressDialog object
|
||||
* is protected by the critical section held by StartProgress */
|
||||
struct create_params *params = (struct create_params *)lpParameter;
|
||||
struct create_params *params = lpParameter;
|
||||
HWND hwnd;
|
||||
MSG msg;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
static LPWSTR strdup_AtoW(LPCSTR str)
|
||||
{
|
||||
int size = MultiByteToWideChar(CP_ACP, 0, str, -1, NULL, 0);
|
||||
LPWSTR wstr = (LPWSTR)CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
|
||||
LPWSTR wstr = CoTaskMemAlloc((size + 1)*sizeof(WCHAR));
|
||||
MultiByteToWideChar(CP_ACP, 0, str, -1, wstr, size+1);
|
||||
return wstr;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue