diff options
author | Nils Durner <durner@gnunet.org> | 2009-07-27 18:12:17 +0000 |
---|---|---|
committer | Nils Durner <durner@gnunet.org> | 2009-07-27 18:12:17 +0000 |
commit | 53f0065b1c2ef64a399f8450a7779ac4fef6b1b5 (patch) | |
tree | 2e7ad71545ea94dcbd8dcc433f8ac490bf64bdfe /src/util | |
parent | b6ddd3d28c8d643ef053eb47e90f8881042a1f2b (diff) | |
download | gnunet-53f0065b1c2ef64a399f8450a7779ac4fef6b1b5.tar.gz gnunet-53f0065b1c2ef64a399f8450a7779ac4fef6b1b5.zip |
fix MinGW
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/disk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/disk.c b/src/util/disk.c index ff4aff1f7..857370c5b 100644 --- a/src/util/disk.c +++ b/src/util/disk.c | |||
@@ -1298,7 +1298,7 @@ GNUNET_DISK_file_unmap (struct GNUNET_DISK_MapHandle *h) | |||
1298 | } | 1298 | } |
1299 | 1299 | ||
1300 | #ifdef MINGW | 1300 | #ifdef MINGW |
1301 | ret = UnmapViewOfFile (addr) ? GNUNET_OK : GNUNET_SYSERR; | 1301 | ret = UnmapViewOfFile (h->h) ? GNUNET_OK : GNUNET_SYSERR; |
1302 | if (ret != GNUNET_OK) | 1302 | if (ret != GNUNET_OK) |
1303 | SetErrnoFromWinError (GetLastError ()); | 1303 | SetErrnoFromWinError (GetLastError ()); |
1304 | if (!CloseHandle (h->h) && (ret == GNUNET_OK)) | 1304 | if (!CloseHandle (h->h) && (ret == GNUNET_OK)) |