flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
comrade 24 May 2014, 07:38
What type of handles are you talking about? If you are using FindWindow to look for a window, then it will return NULL if the window cannot be found. Further feeding in NULL as the parent window handle to an API such as FindWindowEx will likely result in another NULL return. Sending message to a NULL window would also likely fail. But the point is you are relying on strictly defined behaviour of these APIs in the error/invalid-parameter path, which I would avoid if I could. So personally, I would check the return value of each step of your program, and "jump somewhere else" if anything fails.
|
|||
![]() |
|
upsurt 28 May 2014, 05:46
Thank you very much, comrade!
|
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.