mirror of
https://github.com/reactos/wine.git
synced 2024-11-24 12:20:07 +00:00
advpack: Use E_NOT_SUFFICIENT_BUFFER definition.
This commit is contained in:
parent
9e69715900
commit
6db64236a1
@ -679,7 +679,7 @@ HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSecti
|
||||
dwBufferSize, NULL, NULL);
|
||||
}
|
||||
else
|
||||
res = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
|
||||
res = E_NOT_SUFFICIENT_BUFFER;
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, bufferW);
|
||||
@ -739,7 +739,7 @@ HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSec
|
||||
pszBuffer, dwBufferSize, pdwRequiredSize))
|
||||
{
|
||||
if (dwBufferSize < *pdwRequiredSize)
|
||||
hret = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
|
||||
hret = E_NOT_SUFFICIENT_BUFFER;
|
||||
else
|
||||
hret = SPAPI_E_LINE_NOT_FOUND;
|
||||
}
|
||||
@ -796,7 +796,7 @@ HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename,
|
||||
dwBufferSize, NULL, NULL);
|
||||
}
|
||||
else
|
||||
res = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
|
||||
res = E_NOT_SUFFICIENT_BUFFER;
|
||||
}
|
||||
|
||||
HeapFree(GetProcessHeap(), 0, bufferW);
|
||||
@ -854,7 +854,7 @@ HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename,
|
||||
pszBuffer, dwBufferSize, pdwRequiredSize))
|
||||
{
|
||||
if (dwBufferSize < *pdwRequiredSize)
|
||||
return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER);
|
||||
return E_NOT_SUFFICIENT_BUFFER;
|
||||
|
||||
return SPAPI_E_LINE_NOT_FOUND;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user