]> git.lizzy.rs Git - rust.git/commitdiff
windows errors: Change type name for ERROR_SHARING_VIOLATION
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 17:16:05 +0000 (18:16 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 18 Jun 2021 17:51:47 +0000 (18:51 +0100)
DWORD is a type alias for u32, so this makes no difference.
But this entry is anomalous and in my forthcoming commits I am going
to import many errors wholesale, and I spotted that my wholesale
import didn't match what was here.

CC: Chris Denton <christophersdenton@gmail.com>
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
library/std/src/sys/windows/c.rs

index b7efc884473b417715ebb46142e94acef7e4ba3d..acef20a7544c8ddea5c6ac0a03dd135a7ae86ad8 100644 (file)
@@ -173,7 +173,7 @@ fn clone(&self) -> Self {
 pub const ERROR_NOT_ENOUGH_MEMORY: DWORD = 8;
 pub const ERROR_OUTOFMEMORY: DWORD = 14;
 pub const ERROR_NO_MORE_FILES: DWORD = 18;
-pub const ERROR_SHARING_VIOLATION: u32 = 32;
+pub const ERROR_SHARING_VIOLATION: DWORD = 32;
 pub const ERROR_HANDLE_EOF: DWORD = 38;
 pub const ERROR_FILE_EXISTS: DWORD = 80;
 pub const ERROR_INVALID_PARAMETER: DWORD = 87;