Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GUID str2GUID(u1 *guid){
- #if DEBUG(E_NOTICE, ES_CALLSTACK)
- add_function_to_callstack(__FUNCTION__, __FILE__, __LINE__);
- #endif // DEBUG
- u1 *cp = (u1*)kmalloc(GUID_LEN+5);
- strcpy(cp, guid);
- cp[9]=0;
- cp[14]=0;
- cp[19]=0;
- cp[24]=0;
- cp[33]=0;
- GUID g;
- g.data1 = str2hex(cp+1);
- g.data2 = str2hex(cp+10);
- g.data3 = str2hex(cp+15);
- g.data4 = str2hex(cp+20);
- g.data5 = str2hex(cp+25);
- kfree(cp);
- return g;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement