advapi32: Fix output of GetUserNameW when joined to a domain.
commitfaf6f3f299a520480546c686ba6fa2178ea571e8
authorKai Blin <kai.blin@gmail.com>
Wed, 3 Jun 2009 07:35:49 +0000 (3 09:35 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Wed, 3 Jun 2009 13:34:24 +0000 (3 15:34 +0200)
treea783fccf47f88f72c2e53409a525f603716a0720
parent25506ca64e055ba0d182732fd4a5e9b105a1b152
advapi32: Fix output of GetUserNameW when joined to a domain.

On a Windows box joined to a domain, GetUserName will not return the domain
part. On a Unix box joined to a domain via winbindd, wine_get_user_name will.
So we need to cut off the domain instead of just replacing the \ character.
dlls/advapi32/advapi.c