[Bug 44721] New: GetFullPathName return path

classic Classic list List threaded Threaded
7 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 44721] New: GetFullPathName return path

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

            Bug ID: 44721
           Summary: GetFullPathName return path
           Product: Wine
           Version: 3.3
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: kernel32
          Assignee: [hidden email]
          Reporter: [hidden email]
      Distribution: ---

I ran the GetFullPathName code example from the Microsoft site
https://msdn.microsoft.com/en-us/library/windows/desktop/aa364963(v=vs.85).aspx


and Vista returns

The full path name is:  c:\windows\notepad.exe
The short name for c:\longdirectoryname is c:\LONGDI~1
The long name for c:\LONGDI~1 is c:\longdirectoryname

and Wine 3.3 returns

The full path name is:  c:\windowsnotepad.exe
The short name for c:\longdirectoryname is c:\LONG~TX4
The long name for c:\LONG~TX4 is c:\longdirectoryname


The full path name is:  c:\windows\notepad.exe

The full path name is:  c:\windowsnotepad.exe

do not seem to match.

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

--- Comment #1 from Stan <[hidden email]> ---
I used

c:\windows\notepad.exe for the command line argument

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

--- Comment #2 from Stan <[hidden email]> ---
If I use c:\windows\notepad.exe for the command line argument with Wine 3.3
then the output is

The full path name is:  c:\windowsnotepad.exe


If I use c:\\windows\\notepad.exe for the command line argument with Wine 3.3
then the output is

The full path name is:  c:\windows\notepad.exe


If I use c:/windows/notepad.exe for the command line argument with Wine 3.3

The full path name is:  c:\windows\notepad.exe


backslash-double backslash-forward slash, different results.



The return values on Vista are

The full path name is:  c:\windows\notepad.exe

for

command line arguments

c:\windows\notepad.exe

c:\\windows\\notepad.exe

c:/windows/notepad.exe

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

--- Comment #3 from Stan <[hidden email]> ---
From debugging it seems like a command line argument parse error.

The c:\windows\notepad.exe command line argument is getting passed to
GetFullPathName as c:windowsnotepad.exe where the single backslash \ characters
are parsed out by the command line parser before it reaches the GetFullPathName
function (or any function for that matter).

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

Fabian Maurer <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden email]
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEEDINFO

--- Comment #4 from Fabian Maurer <[hidden email]> ---
Can't reproduce the error. How do you call the program, from bash? Then that
might be to blame, not wine.

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

--- Comment #5 from Stan <[hidden email]> ---
(In reply to Fabian Maurer from comment #4)
> Can't reproduce the error. How do you call the program, from bash? Then that
> might be to blame, not wine.

Yes, from bash.

It's probably bash doing it then.

--
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.


Reply | Threaded
Open this post in threaded view
|

[Bug 44721] GetFullPathName return path

Wine - Bugs mailing list
In reply to this post by Wine - Bugs mailing list
https://bugs.winehq.org/show_bug.cgi?id=44721

tokktokk <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[hidden 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.