Skip to content

Conversation

@ThielHater
Copy link

The call of pGetDir() returned error code 87 (ERROR_INVALID_PARAMETER) and left psize set to 0. That's why the second call to pGetDir() always failed on my machine.

If NULL is passed to the first call, error code 122 (ERROR_INSUFFICIENT_BUFFER) is returned instead and a valid value is written into psize, making the second call successful.

I'm curious that this bug hasn't been found earlier. I'm running latest Windows 10 and maybe the WinAPI behaves somewhat different to previous versions?

@frabert
Copy link
Collaborator

frabert commented Oct 3, 2019

Hi! The bug has indeed already been found, and is fixed upstream. We should migrate to using this automatic mirror I have setup here wherever we use PhysFS as a submodule

@ThielHater
Copy link
Author

Hi! So this is an outdated repository? I checked the history of "physfs_platform_windows.c" in the mirror repository and you even narrowed it down to a specific Windows 10 build, that's neat. Well then, nevermind my pull request. :)

@frabert
Copy link
Collaborator

frabert commented Oct 3, 2019

I have not personally fixed the bug, this is just a mirror of the official Mercurial repo for PhysicsFS (https://hg.icculus.org/icculus/physfs/) :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants