[Bug 21758] New: another CommandLineToArgvW bug with empty lpCmdLine

wine-bugs at winehq.org wine-bugs at winehq.org
Thu Feb 18 07:11:12 CST 2010


           Summary: another CommandLineToArgvW bug with empty lpCmdLine
           Product: Wine
           Version: 1.1.38
          Platform: x86
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: shell32
        AssignedTo: wine-bugs at winehq.org
        ReportedBy: pleasenospam325 at mail.ru

CommandLineToArgvW() with empty lpCmdLine truncates result to 6 characters.


Looks like some bug in GetModuleFileName() was fixed and this broke

Test: (builds with mingw)
#include <windows.h>
#include <stdio.h>

int main()
    int i, numargs;
    for (i = 0; i < numargs; i++)
        printf("argv[%d]: %S\n", i, CommandLineToArgvW(L"", &numargs)[i]);
    return 0;
[il at archvm ~]$ pwd
[il at archvm ~]$ wine commandlinetoargv.exe 
argv[0]: Z:\hom
[il at archvm ~]$

Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email
Do not reply to this email, post in Bugzilla using the
above URL to reply.
------- You are receiving this mail because: -------
You are watching all bug changes.

More information about the wine-bugs mailing list