17 Oct
2008
17 Oct
'08
2:56 p.m.
"Ivan Peevski" <cyberhorse(a)gmail.com> wrote:
+ /* Ignore _S_IREAD and _S_IWRITE if file exists. */ + if (stat(path, &buf) != 0) + pmode = pmode & (MSVCRT__S_IREAD | MSVCRT__S_IWRITE); /*relevant flags*/
You need to use MSVCRT__stat(), not the system stat(), and appropriately typed buf. -- Dmitry.