thunk createDirectory and createFile calls

Robert Collins rbcollins@cygwin.com
Fri Nov 14 13:17:00 GMT 2003


On Sat, 2003-11-15 at 00:04, Max Bowsher wrote:
> >
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/base/createfile.asp
> >
> > 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.
Rob

-- 
GPG key available at: <http://members.aardvark.net.au/lifeless/keys.txt>.
-------------- 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: <http://cygwin.com/pipermail/cygwin-patches/attachments/20031114/4cfd7b98/attachment.sig>


More information about the Cygwin-patches mailing list