O.P. RE: How's this for a strange problem?
Apart from a few if (boolVar), I use it in only SendMessage(), RegSetValueEx() and RegQueryValueEx() (typecasted to the correct type of course).
The data is saved in the Registry as REG_BINARY, and is only one byte big. I'm kinda exploiting little-endian here, though that shouldn't matter, since it's a BOOL.
I don't get where it's going wrong, as I have 13 of these BOOLs, and the latest (the 13th) is the only one that causes the problems. All the other 12 work fine, and have always done so.
|