Francois Gouget : advapi32: RegGetValueW() must return the required buffer size in bytes, not WCHARs.