thunk createDirectory and createFile calls

Robert Collins
Fri Nov 14 13:17:00 GMT 2003

On Sat, 2003-11-15 at 00:04, Max Bowsher wrote:
> >
> >
> > Look at the grey box :}.
> Exactly. CreateFile takes LPCTSTR - but you are calling CreateFileA, which
> takes LPCSTR.
> Granted, LPCTSTR == LPCSTR when UNICODE is not defined - but if you are
> relying on that, you don't need to bother with the "A" suffix on the
> function, either.

Ah, I'll look this up tomorrow. For now, I've done the change to not use
MAX_PATH throughout cygwin, and I've broken something. So, I'm figuring
out why :[. That said, I don't plan to rely on UNICODE not being
defined: this code should be the same no matter what options are passed.

GPG key available at: <>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <>

More information about the Cygwin-patches mailing list