Skip to content

Commit e7fb1a7

Browse files
committed
windows errors: Change type name for ERROR_SHARING_VIOLATION
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>
1 parent 2a38dfb commit e7fb1a7

File tree

1 file changed

+1
-1
lines changed
  • library/std/src/sys/windows

1 file changed

+1
-1
lines changed

library/std/src/sys/windows/c.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ pub const ERROR_INVALID_HANDLE: DWORD = 6;
173173
pub const ERROR_NOT_ENOUGH_MEMORY: DWORD = 8;
174174
pub const ERROR_OUTOFMEMORY: DWORD = 14;
175175
pub const ERROR_NO_MORE_FILES: DWORD = 18;
176-
pub const ERROR_SHARING_VIOLATION: u32 = 32;
176+
pub const ERROR_SHARING_VIOLATION: DWORD = 32;
177177
pub const ERROR_HANDLE_EOF: DWORD = 38;
178178
pub const ERROR_FILE_EXISTS: DWORD = 80;
179179
pub const ERROR_INVALID_PARAMETER: DWORD = 87;

0 commit comments

Comments
 (0)