Use the A version of calls when passing ASCII strings.

This commit is contained in:
Jon Griffiths 2004-12-15 10:50:01 +00:00 committed by Alexandre Julliard
parent 4fd0c5fdcf
commit 1f79d57d3a
1 changed files with 2 additions and 2 deletions

View File

@ -59,11 +59,11 @@ static DWORD delete_key( HKEY hkey, LPSTR parent, LPSTR keyname )
RegCloseKey(hkey);
/* open the parent of the key to close */
ret = RegOpenKeyEx( HKEY_CURRENT_USER, parent, 0, KEY_ALL_ACCESS, &parentKey);
ret = RegOpenKeyExA( HKEY_CURRENT_USER, parent, 0, KEY_ALL_ACCESS, &parentKey);
if (ret != ERROR_SUCCESS)
return ret;
ret = SHDeleteKey( parentKey, keyname );
ret = SHDeleteKeyA( parentKey, keyname );
RegCloseKey(parentKey);
return ret;