shithub: choc

Download patch

ref: a10578ede677e72c7832775f5020d855dccc01ce
parent: 07be64bbbfc345998d558afd0f84b1c9c430bd45
author: Alex Mayfield <alexmax2742@gmail.com>
date: Wed May 9 16:07:59 EDT 2018

Strife now boots

The problem was the opendir implementation.  The handle that is passed
around to _findnext and friends is supposed to be a intptr_t, but was
only a long instead.  I suspect the problem only showed up on 64-bit
builds beforehand.

--- a/win32/win_opendir.h
+++ b/win32/win_opendir.h
@@ -46,7 +46,7 @@
    struct dirent dd_dir;
 
    /* _findnext handle */
-   long	dd_handle;
+   intptr_t	dd_handle;
 
    /*
     * Status of search: