mirror of
https://github.com/reactos/wine.git
synced 2025-02-10 14:23:52 +00:00
oleaut32: Do not use wide character constants.
This commit is contained in:
parent
67ed76e685
commit
34b45b311e
@ -266,7 +266,7 @@ BSTR WINAPI SysAllocStringLen(const OLECHAR *str, unsigned int len)
|
|||||||
* string.
|
* string.
|
||||||
*/
|
*/
|
||||||
stringBuffer = (WCHAR*)newBuffer;
|
stringBuffer = (WCHAR*)newBuffer;
|
||||||
stringBuffer[len] = L'\0';
|
stringBuffer[len] = '\0';
|
||||||
|
|
||||||
return (LPWSTR)stringBuffer;
|
return (LPWSTR)stringBuffer;
|
||||||
}
|
}
|
||||||
|
@ -1636,7 +1636,7 @@ static void MSFT_ReadValue( VARIANT * pVar, int offset, TLBContext *pcx )
|
|||||||
MSFT_Read(ptr, size, pcx, DO_NOT_SEEK);/* read string (ANSI) */
|
MSFT_Read(ptr, size, pcx, DO_NOT_SEEK);/* read string (ANSI) */
|
||||||
V_BSTR(pVar)=SysAllocStringLen(NULL,size);
|
V_BSTR(pVar)=SysAllocStringLen(NULL,size);
|
||||||
/* FIXME: do we need a AtoW conversion here? */
|
/* FIXME: do we need a AtoW conversion here? */
|
||||||
V_UNION(pVar, bstrVal[size])=L'\0';
|
V_UNION(pVar, bstrVal[size])='\0';
|
||||||
while(size--) V_UNION(pVar, bstrVal[size])=ptr[size];
|
while(size--) V_UNION(pVar, bstrVal[size])=ptr[size];
|
||||||
TLB_Free(ptr);
|
TLB_Free(ptr);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user