fixups regarding windows wide strings

* remove GetModuleHandleA from kernel32.zig. use of A functions
   considered harmful.
 * make it a compile error to expose WinMain instead of wWinMain. same
   thing.
 * start code declares wWinMainCRTStartup instead of WinMainCRTStartup
   when it has the choice.
This commit is contained in:
Andrew Kelley
2020-10-15 19:37:55 -07:00
parent c7c38e7279
commit d87bd3d8af
4 changed files with 13 additions and 41 deletions

View File

@@ -282,7 +282,7 @@ pub fn addCases(cases: *tests.StackTracesContext) void {
\\source.zig:10:8: [address] in main (test)
\\ foo();
\\ ^
\\start.zig:301:29: [address] in std.start.posixCallMainAndExit (test)
\\start.zig:289:29: [address] in std.start.posixCallMainAndExit (test)
\\ return root.main();
\\ ^
\\start.zig:151:5: [address] in std.start._start (test)