mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 17:47:16 +00:00
ole2disp.dll16: Indentation fix.
This commit is contained in:
parent
fa96beb5c4
commit
97fdb7a9ba
|
@ -136,22 +136,22 @@ INT16 WINAPI SysReAllocString16(LPBSTR16 pbstr,LPCOLESTR16 oleStr)
|
||||||
*/
|
*/
|
||||||
BSTR16 WINAPI SysAllocStringLen16(const char *oleStr, int len)
|
BSTR16 WINAPI SysAllocStringLen16(const char *oleStr, int len)
|
||||||
{
|
{
|
||||||
BSTR16 out=BSTR_AllocBytes(len+1);
|
BSTR16 out=BSTR_AllocBytes(len+1);
|
||||||
|
|
||||||
if (!out)
|
if (!out)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copy the information in the buffer.
|
* Copy the information in the buffer.
|
||||||
* Since it is valid to pass a NULL pointer here, we'll initialize the
|
* Since it is valid to pass a NULL pointer here, we'll initialize the
|
||||||
* buffer to nul if it is the case.
|
* buffer to nul if it is the case.
|
||||||
*/
|
*/
|
||||||
if (oleStr != 0)
|
if (oleStr != 0)
|
||||||
strcpy(BSTR_GetAddr(out),oleStr);
|
strcpy(BSTR_GetAddr(out),oleStr);
|
||||||
else
|
else
|
||||||
memset(BSTR_GetAddr(out), 0, len+1);
|
memset(BSTR_GetAddr(out), 0, len+1);
|
||||||
|
|
||||||
return out;
|
return out;
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
|
Loading…
Reference in a new issue