1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

v2: fix Windows errors

This commit is contained in:
Alexey
2020-03-28 12:19:38 +03:00
committed by GitHub
parent 4541f29019
commit cedf185b41
5 changed files with 7 additions and 8 deletions

View File

@@ -103,10 +103,10 @@ $if msvc {
else {
// https://docs.microsoft.com/en-us/windows/win32/debug/system-error-codes
cerr := int(C.GetLastError())
if (cerr == 87) {
if cerr == 87 {
println('SymFromAddr failure: $cerr = The parameter is incorrect)')
}
else if (cerr == 487) {
else if cerr == 487 {
// probably caused because the .pdb isn't in the executable folder
println('SymFromAddr failure: $cerr = Attempt to access invalid address (Verify that you have the .pdb file in the right folder.)')
}
@@ -137,4 +137,3 @@ fn print_backtrace_skipping_top_frames_nix(skipframes int) bool {
pub fn println(s string) {
print('$s\n')
}

View File

@@ -337,7 +337,7 @@ fn C.FindFirstFileW() voidptr
fn C.FindFirstFile() voidptr
fn C.FindNextFile() voidptr
fn C.FindNextFile() int
fn C.FindClose()