devilhorns pushed a commit to branch master.

http://git.enlightenment.org/apps/express.git/commit/?id=67f0053316f470dda3b27418b1654fe9e458c274

commit 67f0053316f470dda3b27418b1654fe9e458c274
Author: Vincent Torri <vincent dot torri at gmail dot com>
Date:   Wed Oct 14 07:34:00 2015 +0200

    On Windows, use also getpwnam(). Needs EFL 1.16 though
---
 src/bin/utils.c | 10 ----------
 1 file changed, 10 deletions(-)

diff --git a/src/bin/utils.c b/src/bin/utils.c
index d767849..f918fd8 100644
--- a/src/bin/utils.c
+++ b/src/bin/utils.c
@@ -95,15 +95,6 @@ char *
 _util_user_fullname_get(void)
 {
    char fullname[1024];
-
-#ifdef _WIN32
-   /* FIXME: add some kind of getpwnam() in Evil */
-   DWORD size;
-   BOOL res;
-
-   res = GetUserName(fullname, &size);
-   if (!res) return NULL;
-#else
    char *usr;
    struct passwd *p;
    char *tmp;
@@ -125,7 +116,6 @@ _util_user_fullname_get(void)
 
    memcpy(fullname, p->pw_gecos, n);
    fullname[n] = '\0';
-#endif
 
    return strdup(fullname);
 }

-- 


Reply via email to