Skip to content

Commit

Permalink
fix windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
dixyes committed May 31, 2024
1 parent c4fc135 commit d7577da
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions php_micro_fileinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,7 @@ int micro_fileinfo_init(void) {
ret = FAILURE;
goto end;
}
BOOL ret = GetFileSizeEx(handle, &_filesize);
if (!ret) {
if (!GetFileSizeEx(handle, &_filesize)) {
fwprintf(stderr, L"failed get file size: %d\n", GetLastError());
ret = GetLastError();
goto end;
Expand Down

0 comments on commit d7577da

Please sign in to comment.