http://bugs.winehq.org/show_bug.cgi?id=7573
--- Comment #30 from jeff jmgreen7@gmail.com 2007-08-30 01:23:44 --- (In reply to comment #29)
After submitting my comment (#27) I did some poking around in the source code (for 0.9.43) and found the problem with the registry key import. After coming up with my own solution I noticed that there was a much nicer one in the GIT repository (presumably the one Jason submitted). From looking at the code and then fixing the import problem and running Steam it was clear that this is not the issue with games not showing up as purchased.
But from capturing the output of WINEDEBUG=+server I noticed that the get_key_value function was called 4 times for HKCU/software/valve/steam/users/<uid>/licenses. The first three times the license value returned was truncated about three quarters of the way through, but on the fourth call the whole key value was returned. This seems to support my speculation that Steam is asking for the licenses key and not getting the value it wants. I did look at the code in server/registry.c (where the get_key_value function is) but there was nothing that jumped out at me as the cause of the problem.