| ... | @@ -35,6 +35,7 @@ | ... | @@ -35,6 +35,7 @@ |
| 35 | #include <shlobj.h> | 35 | #include <shlobj.h> |
| 36 | #include <io.h> | 36 | #include <io.h> |
| 37 | #include <fcntl.h> | 37 | #include <fcntl.h> |
| | 38 | #include <ntsecapi.h> |
| 38 | | 39 | |
| 39 | typedef SSIZE_T ssize_t; | 40 | typedef SSIZE_T ssize_t; |
| 40 | #else | 41 | #else |
| ... | @@ -1402,7 +1403,7 @@ Error os_make_dir(Buf *path) { | ... | @@ -1402,7 +1403,7 @@ Error os_make_dir(Buf *path) { |
| 1402 | | 1403 | |
| 1403 | static void init_rand() { | 1404 | static void init_rand() { |
| 1404 | #if defined(ZIG_OS_WINDOWS) | 1405 | #if defined(ZIG_OS_WINDOWS) |
| 1405 | const char bytes[sizeof(unsigned)]; | 1406 | char bytes[sizeof(unsigned)]; |
| 1406 | unsigned seed; | 1407 | unsigned seed; |
| 1407 | RtlGenRandom(bytes, sizeof(unsigned)); | 1408 | RtlGenRandom(bytes, sizeof(unsigned)); |
| 1408 | memcpy(&seed, bytes, sizeof(unsigned)); | 1409 | memcpy(&seed, bytes, sizeof(unsigned)); |