authorgravatar for rganesan@arista.comGanesan Rajagopal <rganesan@arista.com> 2023-01-01 21:27:05+05:30
committergravatar for noreply@github.comGitHub <noreply@github.com> 2023-01-01 15:57:05+00:00
log4172c2916684655a9742de99384be8110922ed07
treed2a167473541aa3b0d2f463abc6377aed2660f84
parentaadd1b252e1d912e45cc924a15872d7c3d1f9080
signaturebadge-question-mark Signed by PGP key 4AEE18F83AFDEB23

Fix typo (#14149)


1 files changed, 2 insertions(+), 2 deletions(-)

lib/std/os/windows.zig+2-2
...@@ -1493,9 +1493,9 @@ pub fn VirtualFree(lpAddress: ?LPVOID, dwSize: usize, dwFreeType: DWORD) void {...@@ -1493,9 +1493,9 @@ pub fn VirtualFree(lpAddress: ?LPVOID, dwSize: usize, dwFreeType: DWORD) void {
1493 assert(kernel32.VirtualFree(lpAddress, dwSize, dwFreeType) != 0);1493 assert(kernel32.VirtualFree(lpAddress, dwSize, dwFreeType) != 0);
1494}1494}
14951495
1496pub const VirtualQuerryError = error{Unexpected};1496pub const VirtualQueryError = error{Unexpected};
14971497
1498pub fn VirtualQuery(lpAddress: ?LPVOID, lpBuffer: PMEMORY_BASIC_INFORMATION, dwLength: SIZE_T) VirtualQuerryError!SIZE_T {1498pub fn VirtualQuery(lpAddress: ?LPVOID, lpBuffer: PMEMORY_BASIC_INFORMATION, dwLength: SIZE_T) VirtualQueryError!SIZE_T {
1499 const rc = kernel32.VirtualQuery(lpAddress, lpBuffer, dwLength);1499 const rc = kernel32.VirtualQuery(lpAddress, lpBuffer, dwLength);
1500 if (rc == 0) {1500 if (rc == 0) {
1501 switch (kernel32.GetLastError()) {1501 switch (kernel32.GetLastError()) {