Logo Search packages:      
Sourcecode: virtualbox-ose version File versions  Download package

int SysReAllocString ( BSTR *  pbstr,
const OLECHAR *  psz 

Reallocates a string by freeing the old string and copying a new string into a new buffer.

pbstr old string to free
psz source string to copy into the new string
success indicator

Definition at line 131 of file helpers.cpp.

References SysAllocString(), and SysFreeString().

    if (!pbstr)
        return 0;
    *pbstr = SysAllocString(psz);
    return 1;

Generated by  Doxygen 1.6.0   Back to index