[PATCH 2/6] gameux: initial implementation of IGameExplorer::AddGame

Mariusz Pluciński vshader at gmail.com
Tue Sep 7 07:29:06 CDT 2010

W dniu 07.09.2010 11:52, Mariusz Pluciński pisze:
> W dniu 03.09.2010 13:01, Nikolay Sivov pisze:
>> On 9/3/2010 13:25, Mariusz Pluciński wrote:
>>> + WCHAR sInstanceId[40];
>>> + WCHAR sRegistryPath[8192];
>> Where does this come from? Sizes I mean.
> I did a mistake. sInstanceId needs only 39 characters to store GUID and
> zero byte for termination. Thanks.
> In defining size of sRegistryPath, I followed suggestions from MSDN:
> http://msdn.microsoft.com/en-us/library/ms724872%28v=VS.85%29.aspx
> by multiplying 32*256 - maximum number of registry tree levels in single
> API call and maximum number of characters in key name with following '\'
> character added. I must assume, that it was a problem for me to decide
> which value should I use. Is there any better way to do this?
Oh, and I forgot to add: my function _buildGameRegistryPath is copied 
directly from my previous commit, which was accepted:

More information about the wine-devel mailing list