Assorted spelling fixes.
diff --git a/tools/winapi/winapi_extract b/tools/winapi/winapi_extract
index 70b3f5a..040f228 100755
--- a/tools/winapi/winapi_extract
+++ b/tools/winapi/winapi_extract
@@ -70,7 +70,7 @@
 	while($lookahead || defined($_ = <IN>)) {
 	    $lookahead = 0;
 
-	    s/^\s*?(.*?)\s*$/$1/; # remove whitespace at begining and end of line
+	    s/^\s*?(.*?)\s*$/$1/; # remove whitespace at beginning and end of line
 	    s/^(.*?)\s*#.*$/$1/;  # remove comments
 	    /^$/ && next;         # skip empty lines