aboutsummaryrefslogtreecommitdiff
path: root/lib/io/src/win32/istream.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-12 19:40:41 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-06-15 13:38:25 +0200
commit2694532a5479d157903b6c600d9b1d5c145a4e4c (patch)
tree2a9088f44f51994170032c0ae76aca21e9f1c4aa /lib/io/src/win32/istream.c
parent1f506a17903f5eeaded9065e42726c1a09dc6f89 (diff)
libio: replace OSTREAM_OPEN_* flags with SQFS_FILE_OPEN_* flags
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/io/src/win32/istream.c')
-rw-r--r--lib/io/src/win32/istream.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/io/src/win32/istream.c b/lib/io/src/win32/istream.c
index 46bed30..d140142 100644
--- a/lib/io/src/win32/istream.c
+++ b/lib/io/src/win32/istream.c
@@ -153,10 +153,11 @@ fail_free:
istream_t *istream_open_file(const char *path)
{
- WCHAR *wpath = path_to_windows(path);
+ WCHAR *wpath = NULL;
istream_t *out;
HANDLE hnd;
+ wpath = path_to_windows(path);
if (wpath == NULL)
return NULL;