diff options
author | Benny Prijono <bennylp@teluu.com> | 2008-08-28 11:19:54 +0000 |
---|---|---|
committer | Benny Prijono <bennylp@teluu.com> | 2008-08-28 11:19:54 +0000 |
commit | c45bcd192b4489c6e55f617e15c4392a8a2d27e1 (patch) | |
tree | 1d4ffc71cd348f2e5ec97c8d267a2f9c96f0138e /pjlib | |
parent | f0fabf88acbc7cce1efb9c00b3cfb19c642d9a35 (diff) |
More ticket #604: create the file if it doesn't exist when PJ_O_APPEND flag is set
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@2254 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjlib')
-rw-r--r-- | pjlib/src/pj/file_io_win32.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjlib/src/pj/file_io_win32.c b/pjlib/src/pj/file_io_win32.c index ee7edef8..6eb570f7 100644 --- a/pjlib/src/pj/file_io_win32.c +++ b/pjlib/src/pj/file_io_win32.c @@ -59,7 +59,7 @@ PJ_DEF(pj_status_t) pj_file_open( pj_pool_t *pool, dwDesiredAccess |= GENERIC_WRITE; if ((flags & PJ_O_APPEND) == PJ_O_APPEND) { dwDesiredAccess |= FILE_APPEND_DATA; - dwCreationDisposition |= OPEN_EXISTING; + dwCreationDisposition |= OPEN_ALWAYS; } else { dwDesiredAccess &= ~(FILE_APPEND_DATA); dwCreationDisposition |= CREATE_ALWAYS; |