| 10 | } |
| 11 | } |
| 12 | XRCORE_API CLASS_ID __stdcall TEXT2CLSID(LPCSTR text) |
| 13 | { |
| 14 | VERIFY3(xr_strlen(text) <= 8, "Beer from creator CLASS_ID:", text); |
| 15 | char buf[9]; |
| 16 | buf[8] = 0; |
| 17 | strncpy(buf, text, 8); |
| 18 | size_t need = 8 - xr_strlen(buf); |
| 19 | while (need) |
| 20 | { |
| 21 | buf[8 - need] = ' '; |
| 22 | need--; |
| 23 | } |
| 24 | return MK_CLSID(buf[0], buf[1], buf[2], buf[3], buf[4], buf[5], buf[6], buf[7]); |
| 25 | } |
no test coverage detected