Original Post
Hey everyone, This might be a simple one, but Im not to sure what I am overlooking. I have the following code, stripped down for simplicity:
INISYSAPI
INISTATUS
INIAPI
MountVolume (IN UCHAR Volume, OUT PFILESYSTEM FileSystem) {
//*cut*
FileSystem->Mount = FsysFatMount;
} FileSystem is a pointer to a structure that contains function pointers (FileSystem->Mount is a function pointer.) If I call FileSystem->Mount() inside of this function, it properly calls FsysFatMount () as expected thanks to the above assignment. But, if I call FileSystem::Mount from outside this function inside of a different function like the following code: FILESYSTEM FileSystem;
MountVolume ('a', &FileSystem);
FileSystem.Mount (); It crashes with an invalid instruction as FileSystem::Mount no longer points to FsysFatMount. Does anyone see what I may be doing wrong? Thanks for any help [smile]