Home | Info | Community | Development | myReactOS | Contact Us
Definition at line 406 of file devprblm.c.
{ LPWSTR lpBuffer = NULL; UINT Ret = 0; if (uMaxString != 0) { lpBuffer = HeapAlloc(GetProcessHeap(), 0, (uMaxString + 1) * sizeof(WCHAR)); if (lpBuffer == NULL) { SetLastError(ERROR_NOT_ENOUGH_MEMORY); return 0; } } Ret = DeviceProblemTextW(hMachine, dnDevInst, uProblemId, lpBuffer, uMaxString); if (lpBuffer != NULL) { if (Ret) { WideCharToMultiByte(CP_ACP, 0, lpBuffer, (int)Ret, lpString, (int)uMaxString, NULL, NULL); } HeapFree(GetProcessHeap(), 0, lpBuffer); } return Ret; }