Alexandre Julliard : cabinet: Add a helper function to set error code in FDI.