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

# SafeArrayUnlock(3w)

## NAME

**SafeArrayUnlock** (OLEAUT32.22)

## SYNOPSIS

HRESULT SafeArrayUnlock\
  (\
   SAFEARRAY\* *psa*\
  )

## DESCRIPTION

Decrement the lock counter of a SafeArray.

## PARAMS

*psa* **\[Out\]**  SafeArray to unlock.

## RETURNS

**Success:** **S\_OK**. The array lock is decremented.

**Failure:** **E\_INVALIDARG** if *psa* is **NULL**, or **E\_UNEXPECTED** if no locks are held on the array.

## NOTES

See **[SafeArray(3w)](/SafeArray/3w.md)**.

## IMPLEMENTATION

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

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

Debug channel **"variant"**.
