If you are loading the dll... you can specify a path. A common technique is using the path the .EXE was loaded from that is requesting the library.
Anyway...
It has been a while but I believe I questioned this once before and found that if a path is not specified... First checks current directory, thens reverts to System32 directory.