[PATCH] kernel32: Fix failure reporting in WritePrivateProfile* and add tests