Re: [PATCH] QueryDosDevice in handle_to_fn

2008-03-22 Thread Christopher Faylor
On Sun, Mar 16, 2008 at 11:36:07AM -0400, Christopher Faylor wrote: This is basically my function. I'll try to convert it to use Unicode today. I've checked in changes which move handle_to_fn closer to being totally 32-bit aware and fixed one pipe and one tty problem in the process. cgf

Re: [PATCH] QueryDosDevice in handle_to_fn

2008-03-22 Thread Christopher Faylor
On Sat, Mar 22, 2008 at 05:05:28PM -0400, Christopher Faylor wrote: On Sun, Mar 16, 2008 at 11:36:07AM -0400, Christopher Faylor wrote: This is basically my function. I'll try to convert it to use Unicode today. I've checked in changes which move handle_to_fn closer to being totally 32-bit aware

Re: [PATCH] QueryDosDevice in handle_to_fn

2008-03-16 Thread Christopher Faylor
On Sun, Mar 16, 2008 at 04:22:13PM +0100, Corinna Vinschen wrote: On Mar 16 03:14, Brian Dessent wrote: I debugged this and found the strangest thing, when you call QueryDosDevice (NULL, fnbuf, len) to get the list of all DOS devices and len = 65536, Win32 always returns 0 with GetLastError

Re: [PATCH] QueryDosDevice in handle_to_fn

2008-03-16 Thread Brian Dessent
Corinna Vinschen wrote: len is a const value. Checking len for being 65536 is a constant expression which always results in qddlen being 65535 so the ?: is a noop, more or less. Yeah, I realized that, and the compiler should optimize it away completely. I put it explicitly as a test in the