---
name: "SysReAllocStringLen"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SysReAllocStringLen"
---

# SysReAllocStringLen(3w)

## NAME

**SysReAllocStringLen** (OLEAUT32.5)

## SYNOPSIS

int SysReAllocStringLen\
  (\
   BSTR\*          *old*,\
   const OLECHAR\* *str*,\
   unsigned int   *len*\
  )

## DESCRIPTION

Change the length of a previously created **BSTR**.

## PARAMS

*old* **\[Out\]**  **BSTR** to change the length of.

*str* **\[In\]**  New source for pbstr.

*len* **\[In\]**  Length of oleStr in wide characters.

## RETURNS

**Success:** **1.** The size of pbstr is updated.

**Failure:** **0**, if *len* \>= 0x80000000 or memory allocation fails.

## NOTES

See **[BSTR(3w)](/BSTR/3w.md)**, **[SysAllocStringByteLen(3w)](/SysAllocStringByteLen/3w.md)**. \**old* may be changed by this function.

## IMPLEMENTATION

Declared in **"oleauto.h"**.

Implemented in **"dlls/oleaut32/oleaut.c"**.

Debug channel **"ole"**.
