flat assembler
Message board for the users of flat assembler.
Index
> Windows > WritePrivateProfileStringA - always failing? |
Author |
|
shoorick 01 Aug 2008, 11:36
use 12 instead of 11. you did not aligned stack with your allocation, use multiplication of 4 (32 bits) in future for this
|
|||
01 Aug 2008, 11:36 |
|
Pinecone_ 01 Aug 2008, 11:52
Other than for debugging purposes, does it really matter if the stack is not aligned to 4 bytes? I allocated 11 bytes because that's the maximum it would require.
|
|||
01 Aug 2008, 11:52 |
|
shoorick 01 Aug 2008, 12:18
some API checks stack aligning and fail if it is not aligned. also, it is required by CPU performance.
|
|||
01 Aug 2008, 12:18 |
|
Pinecone_ 01 Aug 2008, 12:36
Awesome Thanks for the info and the help. Didn't know that before.
|
|||
01 Aug 2008, 12:36 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.