git-svn: trunk@3829
Tomasz Kojm authored on 2008/04/30 22:44:23... | ... |
@@ -1,3 +1,7 @@ |
1 |
+Wed Apr 30 14:44:18 CEST 2008 (tk) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/chmunpack.c: fix unlink failure on win32 (bb#951) |
|
4 |
+ |
|
1 | 5 |
Wed Apr 30 14:15:53 CEST 2008 (tk) |
2 | 6 |
---------------------------------- |
3 | 7 |
* libclamav/mspack.c: downgrade some error messages (bb#911) |
... | ... |
@@ -765,10 +765,12 @@ static int chm_decompress_stream(int fd, chm_metadata_t *metadata, const char *d |
765 | 765 |
lzx_decompress(stream, length); |
766 | 766 |
lzx_free(stream); |
767 | 767 |
|
768 |
+#ifndef C_WINDOWS |
|
768 | 769 |
/* Delete the file */ |
769 | 770 |
if(cli_unlink(filename)) |
770 | 771 |
retval = -1; |
771 | 772 |
else |
773 |
+#endif |
|
772 | 774 |
retval = tmpfd; |
773 | 775 |
|
774 | 776 |
abort: |