ole2disp.dll16: Indentation fix.

oldstable
Andrew Talbot 2012-12-18 22:52:17 +00:00 committed by Alexandre Julliard
parent fa96beb5c4
commit 97fdb7a9ba
1 changed files with 10 additions and 10 deletions

View File

@ -136,22 +136,22 @@ INT16 WINAPI SysReAllocString16(LPBSTR16 pbstr,LPCOLESTR16 oleStr)
*/
BSTR16 WINAPI SysAllocStringLen16(const char *oleStr, int len)
{
BSTR16 out=BSTR_AllocBytes(len+1);
BSTR16 out=BSTR_AllocBytes(len+1);
if (!out)
return 0;
if (!out)
return 0;
/*
* Copy the information in the buffer.
* Since it is valid to pass a NULL pointer here, we'll initialize the
* buffer to nul if it is the case.
*/
* Copy the information in the buffer.
* Since it is valid to pass a NULL pointer here, we'll initialize the
* buffer to nul if it is the case.
*/
if (oleStr != 0)
strcpy(BSTR_GetAddr(out),oleStr);
strcpy(BSTR_GetAddr(out),oleStr);
else
memset(BSTR_GetAddr(out), 0, len+1);
memset(BSTR_GetAddr(out), 0, len+1);
return out;
return out;
}
/******************************************************************************