0
如何檢查UNICODE_STRING結構的緩衝區是否爲空? 它訪問緩衝區值時崩潰,如果爲空,但是當我檢查它爲null它返回true。UNICODE_STRING爲空或不是?
if (&struct.name.Buffer){ --------------> this is returning true.
name = wcscmp(
(const wchar_t*)struct.name.Buffer, --------------> crashing code.
(const wchar_t*)localName);
}
謝謝阿列克謝。這工作得很好。 :) – Anand 2013-02-26 05:16:01