Stan` Posted January 29, 2018 Report Share Posted January 29, 2018 You can use Ensure macros. Not sure there is a function to check write permission. (There should be one) Quote Link to comment Share on other sites More sharing options...
LukeV1 Posted January 29, 2018 Author Report Share Posted January 29, 2018 I've got a working patch now. Just replaced WARN_IF_FALSE(SetEndOfFile(hFile)); by RETURN_STATUS_IF_ERR(SetEndOfFile(hFile)); in wfilesystem.cpp and all of a sudden everything works. Not sure if it breaks/ slows down something, but I don't think so. Don't ask me why that works, but it does work (at least for me). Didn't create a diff in Phabricator since I never used it and don't want to destroy something... Quote Link to comment Share on other sites More sharing options...
Imarok Posted January 29, 2018 Report Share Posted January 29, 2018 18 minutes ago, LukeV1 said: I've got a working patch now. Just replaced WARN_IF_FALSE(SetEndOfFile(hFile)); by RETURN_STATUS_IF_ERR(SetEndOfFile(hFile)); in wfilesystem.cpp and all of a sudden everything works. Not sure if it breaks/ slows down something, but I don't think so. Don't ask me why that works, but it does work (at least for me). Didn't create a diff in Phabricator since I never used it and don't want to destroy something... Don't think you could destroy anything by uploading a diff in phabricator. Quote Link to comment Share on other sites More sharing options...
LukeV1 Posted January 29, 2018 Author Report Share Posted January 29, 2018 Ok, created a diff: https://code.wildfiregames.com/D1274 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.