Skip to content

Commit 04c8c28

Browse files
committed
FIX: added casting to prevent compiler warnings
1 parent 1aa73f4 commit 04c8c28

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/os/win32/dev-file.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,7 @@ static BOOL Seek_File_64(REBREQ *file)
297297
if (!Seek_File_64(file)) return DR_ERROR;
298298
}
299299

300-
if (!ReadFile(file->handle, file->data, file->length, &file->actual, 0)) {
300+
if (!ReadFile(file->handle, file->data, file->length, (LPDWORD)&file->actual, 0)) {
301301
file->error = -RFE_BAD_READ;
302302
return DR_ERROR;
303303
} else {
@@ -337,7 +337,7 @@ static BOOL Seek_File_64(REBREQ *file)
337337
}
338338

339339
if (file->length != 0) {
340-
if (!WriteFile(file->handle, file->data, file->length, &file->actual, 0)) {
340+
if (!WriteFile(file->handle, file->data, file->length, (LPDWORD)&file->actual, 0)) {
341341
result = GetLastError();
342342
if (result == ERROR_HANDLE_DISK_FULL) file->error = -RFE_DISK_FULL;
343343
else file->error = -RFE_BAD_WRITE;

0 commit comments

Comments
 (0)