Commit 6db64236 authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

advpack: Use E_NOT_SUFFICIENT_BUFFER definition.

parent 9e697159
...@@ -679,7 +679,7 @@ HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSecti ...@@ -679,7 +679,7 @@ HRESULT WINAPI TranslateInfStringA(LPCSTR pszInfFilename, LPCSTR pszInstallSecti
dwBufferSize, NULL, NULL); dwBufferSize, NULL, NULL);
} }
else else
res = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); res = E_NOT_SUFFICIENT_BUFFER;
} }
HeapFree(GetProcessHeap(), 0, bufferW); HeapFree(GetProcessHeap(), 0, bufferW);
...@@ -739,7 +739,7 @@ HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSec ...@@ -739,7 +739,7 @@ HRESULT WINAPI TranslateInfStringW(LPCWSTR pszInfFilename, LPCWSTR pszInstallSec
pszBuffer, dwBufferSize, pdwRequiredSize)) pszBuffer, dwBufferSize, pdwRequiredSize))
{ {
if (dwBufferSize < *pdwRequiredSize) if (dwBufferSize < *pdwRequiredSize)
hret = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); hret = E_NOT_SUFFICIENT_BUFFER;
else else
hret = SPAPI_E_LINE_NOT_FOUND; hret = SPAPI_E_LINE_NOT_FOUND;
} }
...@@ -796,7 +796,7 @@ HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename, ...@@ -796,7 +796,7 @@ HRESULT WINAPI TranslateInfStringExA(HINF hInf, LPCSTR pszInfFilename,
dwBufferSize, NULL, NULL); dwBufferSize, NULL, NULL);
} }
else else
res = HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); res = E_NOT_SUFFICIENT_BUFFER;
} }
HeapFree(GetProcessHeap(), 0, bufferW); HeapFree(GetProcessHeap(), 0, bufferW);
...@@ -854,7 +854,7 @@ HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename, ...@@ -854,7 +854,7 @@ HRESULT WINAPI TranslateInfStringExW(HINF hInf, LPCWSTR pszInfFilename,
pszBuffer, dwBufferSize, pdwRequiredSize)) pszBuffer, dwBufferSize, pdwRequiredSize))
{ {
if (dwBufferSize < *pdwRequiredSize) if (dwBufferSize < *pdwRequiredSize)
return HRESULT_FROM_WIN32(ERROR_INSUFFICIENT_BUFFER); return E_NOT_SUFFICIENT_BUFFER;
return SPAPI_E_LINE_NOT_FOUND; return SPAPI_E_LINE_NOT_FOUND;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment