APIs are often buggy. Sometimes, you really need to use them for your project. If you choose not to call those APIs, and there is no suitable replacement, your project will also not get done. You may lose your job as well as a result. There is no good choice.
Good luck getting the OS fixed if Microsoft is the vendor. And if they do, they may break many other apps that are distributed in binary form, that had to work around the API bugs previously.
Oftentimes, when binary compatibility is a concern, the compromise is for the OS to introduce a new API with fixed and better documented semantics, and leave the broken API alone.