X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=mono%2Fmetadata%2Ficall.c;h=3e87be6daf94477e3de8824cdcf2ca0a7f128956;hb=56edb3357c0af9eae94a01dd72c7623bd6322dd8;hp=f0dc4ef12388e9e8d7c8225536fbe2167062c753;hpb=a69c38055f657ffbe0ac41c2b594c5b420a4699f;p=mono.git diff --git a/mono/metadata/icall.c b/mono/metadata/icall.c index f0dc4ef1238..3e87be6daf9 100644 --- a/mono/metadata/icall.c +++ b/mono/metadata/icall.c @@ -85,7 +85,6 @@ #include #include #include -#include #include #include #include @@ -97,6 +96,8 @@ #include #include #include +#include +#include #include "decimal-ms.h" #include "number-ms.h" @@ -7031,7 +7032,7 @@ ves_icall_System_IO_DriveInfo_GetDiskFreeSpace (MonoString *path_name, guint64 * result = mono_w32file_get_disk_free_space (mono_string_chars (path_name), free_bytes_avail, total_number_of_bytes, total_number_of_free_bytes); if (!result) - *error = GetLastError (); + *error = mono_w32error_get_last (); return result; }