]> wimlib.net Git - wimlib/blobdiff - src/win32.c
Misc. Win32 fixes, comment updates
[wimlib] / src / win32.c
index b3468a9a2b8d88062e63a528f306c68994a3a1e8..294e9ab683299c59d5753314ff6017ee0c2c9264 100644 (file)
@@ -29,7 +29,7 @@ void win32_error(u32 err_code)
 #define win32_error(err_code)
 #endif
 
-void *win32_open_file(const void *path)
+void *win32_open_file_readonly(const void *path)
 {
        return CreateFileW((const wchar_t*)path,
                           GENERIC_READ | READ_CONTROL,
@@ -40,7 +40,7 @@ void *win32_open_file(const void *path)
                                   FILE_FLAG_OPEN_REPARSE_POINT,
                           NULL /* hTemplateFile */);
 }
-               
+
 int win32_read_file(const char *filename,
                    void *handle, u64 offset, size_t size, u8 *buf)
 {
@@ -48,7 +48,7 @@ int win32_read_file(const char *filename,
        DWORD err;
        DWORD bytesRead;
        LARGE_INTEGER liOffset = {.QuadPart = offset};
-       
+
        wimlib_assert(size <= 0xffffffff);
 
        if (SetFilePointerEx(h, liOffset, NULL, FILE_BEGIN))