wineboot: Create user folders if they don't exist.
commit193fc956287bd2e2d611a44e4b36a3e5e9021432
authorZhiyi Zhang <zzhang@codeweavers.com>
Mon, 17 Sep 2018 15:32:10 +0000 (17 23:32 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 18 Sep 2018 18:59:38 +0000 (18 20:59 +0200)
tree5f39c74090f38ea011c74addb54d6e0ed8abeba9
parent1e8c62b0209977aeb74e52c874dff53313117a63
wineboot: Create user folders if they don't exist.

When creating volatile environment registry keys during first
wineprefix creation, none of the user folders are existent.  Create
them before setting registry keys so that volatile environment gets
initialized and corresponding environment variables such as
%USERPROFILE% can be set. Otherwise, such environment variables are
set only after another wineboot, causing applications to fail if they
need them after first boot.

Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
programs/wineboot/wineboot.c