advapi32: Fix output of GetUserNameW when joined to a domain. (try 2)

Kai Blin kai.blin at gmail.com
Wed Jun 3 02:35:49 CDT 2009


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 |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bcbdf635c8cabd74d7dc9fbd35f3f76e99b00979.diff
Type: text/x-patch
Size: 1423 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20090603/da9052db/attachment.bin>


More information about the wine-patches mailing list