mirror of
https://github.com/dashr9230/SA-MP.git
synced 2024-11-27 08:20:35 +00:00
[saco] Match GetSAMPPath()
This commit is contained in:
parent
5c6ef63a74
commit
589b540f54
@ -194,13 +194,15 @@ PCHAR GetArtworkProxy()
|
||||
HKEY hKey;
|
||||
DWORD dwType;
|
||||
|
||||
if(RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\SAMP", 0, KEY_READ, &hKey) != ERROR_SUCCESS)
|
||||
if(RegOpenKeyEx(HKEY_CURRENT_USER, "Software\\SAMP", 0, KEY_READ, &hKey) == ERROR_SUCCESS) {
|
||||
if(RegQueryValueEx(hKey, "artwork_proxy", NULL, &dwType, (LPBYTE) szArtworkProxy, &cbData) == ERROR_SUCCESS) {
|
||||
return szArtworkProxy;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
} else {
|
||||
return NULL;
|
||||
|
||||
if(RegQueryValueEx(hKey, "artwork_proxy", NULL, &dwType, (LPBYTE) szArtworkProxy, &cbData) != ERROR_SUCCESS)
|
||||
return NULL;
|
||||
|
||||
return szArtworkProxy;
|
||||
}
|
||||
}
|
||||
|
||||
//----------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user