- Timestamp:
- Jan 10, 2012 10:59:41 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_wgl.c
r39507 r39735 157 157 char *pBufPos = pBuf; 158 158 DWORD cbBufRemain = cbBuf, cbTotal = 0; 159 HKEY hKey ;159 HKEY hKey, hSubkey; 160 160 DWORD dwIndex = 0; 161 161 int i; … … 191 191 } 192 192 193 lRc = RegOpenKeyEx(hKey, 194 NameBuf, 195 0, /* reserved*/ 196 KEY_READ, 197 &hSubkey); 198 if (ERROR_SUCCESS != lRc) 199 { 200 crDebug("RegOpenKeyEx 2 failed, %d", lRc); 201 RegCloseKey(hKey); 202 return VERR_OPEN_FAILED; 203 } 204 193 205 for (i = 0; i < RT_ELEMENTS(aValueNames); ++i) 194 206 { 195 207 DWORD cbCur = cbBufRemain; 196 lRc = RegGetValueA(hKey, NameBuf, aValueNames[i], RRF_RT_REG_MULTI_SZ, 197 NULL, /* LPDWORD pdwType */ 198 pBufPos, 199 &cbCur); 208 lRc = RegQueryValueExA(hSubkey, aValueNames[i], NULL, /* reserved*/ 209 REG_MULTI_SZ, 210 (PBYTE)pBufPos, &cbCur); 200 211 /* exclude second null termination */ 201 212 --cbCur; 213 202 214 if (ERROR_MORE_DATA == lRc) 203 215 { … … 222 234 CRASSERT(cbBufRemain < UINT32_MAX/2); 223 235 } 224 } 236 237 RegCloseKey(hSubkey); 238 } 239 240 RegCloseKey(hKey); 225 241 226 242 if (cbTotal)
Note:
See TracChangeset
for help on using the changeset viewer.