mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-16 03:35:05 +02:00
fixed MoveFileEx
This commit is contained in:
parent
3f045ccdca
commit
7e517f1619
|
@ -428,7 +428,8 @@ retry:
|
||||||
ngx_close_file(fd);
|
ngx_close_file(fd);
|
||||||
|
|
||||||
#if (NGX_WIN32)
|
#if (NGX_WIN32)
|
||||||
rc = MoveFileEx(ctx->playlist_bak.data, ctx->playlist.data,
|
rc = MoveFileEx((LPCTSTR) ctx->playlist_bak.data,
|
||||||
|
(LPCTSTR) ctx->playlist.data,
|
||||||
MOVEFILE_REPLACE_EXISTING);
|
MOVEFILE_REPLACE_EXISTING);
|
||||||
#else
|
#else
|
||||||
rc = ngx_rename_file(ctx->playlist_bak.data, ctx->playlist.data);
|
rc = ngx_rename_file(ctx->playlist_bak.data, ctx->playlist.data);
|
||||||
|
|
Loading…
Reference in a new issue