Stan` Posted January 29, 2018 Share Posted January 29, 2018 You can use Ensure macros. Not sure there is a function to check write permission. (There should be one) Link to comment Share on other sites More sharing options...
LukeV1 Posted January 29, 2018 Author 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... Link to comment Share on other sites More sharing options...
Imarok Posted January 29, 2018 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. Link to comment Share on other sites More sharing options...
LukeV1 Posted January 29, 2018 Author Share Posted January 29, 2018 Ok, created a diff: https://code.wildfiregames.com/D1274 1 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now