Skip to content

Loading VDF crash Win 10 #369

@mineas312

Description

@mineas312

When I try to start the game, it closes immediately. Console output:

Output

The crash is caused in a function char * __PHYSFS_platformCalcUserDir(void) in file physfs_platform_windows.c

This element of code should fail but it doesn't. Second parameter is set to '\0'

/*
         * Should fail. Will write the size of the profile path in
         *  psize. Also note that the second parameter can't be
         *  NULL or the function fails.
         */
        rc = pGetDir(accessToken, &dummy, &psize);
        GOTO_IF(rc, PHYSFS_ERR_OS_ERROR, done);  /* should have failed! */

Later it causes access violations and game crashes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions