Francois Gouget : advapi32: RegGetValue() should not return an error when expanding a string and given a NULL buffer and a zero size .