diff options
author | Nat Goodspeed <nat@lindenlab.com> | 2018-10-25 11:24:06 -0400 |
---|---|---|
committer | Nat Goodspeed <nat@lindenlab.com> | 2020-03-25 16:12:46 -0400 |
commit | f71c71fe42756e18e41c7e6ee531f1acc72815ca (patch) | |
tree | 1d2423e7288d9594d76723a9bf7eae87e3d48152 /etc | |
parent | 30fa24966463a2c10c620b782ac5c8d1b8303ceb (diff) |
DRTVWR-476: Fix _open_osfhandle() param from long to intptr_t.
The Microsoft _open_osfhandle() opens a HANDLE to produce a C-style int file
descriptor suitable for passing to _fdopen(). We used to cast the HANDLEs
returned by GetStdHandle() to long to pass to _open_osfhandle(). Since HANDLE
is an alias for a pointer, this no longer works.
Fortunately _open_osfhandle() now accepts intptr_t, so we can change the
relevant GetStdHandle() calls. (But why not simply accept HANDLE in the first
place?)
Diffstat (limited to 'etc')
0 files changed, 0 insertions, 0 deletions