build: bump windows from 0.37.0 to 0.38.0 (#4105)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
David Knaack
2022-06-27 00:27:45 +02:00
committed by GitHub
parent e1351ac096
commit 277a7cc740
3 changed files with 20 additions and 20 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ pub fn is_write_allowed(folder_path: &Path) -> std::result::Result<bool, String>
// expect ERROR_INSUFFICIENT_BUFFER
match rc.ok() {
Err(e) if e.win32_error() == Some(ERROR_INSUFFICIENT_BUFFER) => (),
Err(e) if e.code() == ERROR_INSUFFICIENT_BUFFER.into() => (),
result => return Err(format!("GetFileSecurityW returned unexpected return value when asked for the security descriptor size: {:?}", result)),
}