Uwe Bonnes bon@elektron.ikp.physik.tu-darmstadt.de writes:
Wine happily returns a valid function adress, also obvious the same at least for different stubbed functions in the same dll. I searched for a way to return perhaps some flag in LdrGetProcedureAddress for that case, but I was not able to find something. I didn't find a way how LdrGetProcedureAddress could get that address and compare with the function address calculated for the requested function.
Perhaps Eric or some other guru can...
I propose that GetProcAddress evaluates that flag and should return 0 for stubs.
There's no reason to do that; the whole point of declaring a stub is to provide a function address. If we don't want that function at all it should simply be commented out in the spec file.