mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-14 21:09:05 +08:00
+fix: find file extension
This commit is contained in:
parent
5d872f58cb
commit
b19a3f3ed6
@ -1168,7 +1168,7 @@ LPCWSTR PTHAPI Path_FindExtension(const HPATHL hpth)
|
||||
|
||||
///PathXCchFindExtension(StrgGet(hstr), StrgGetAllocLength(hstr), &pext);
|
||||
LPCWSTR pfile = Path_FindFileName(hpth);
|
||||
LPWSTR const pdot = pfile ? wcschr(pfile, L'.') : NULL;
|
||||
LPWSTR const pdot = pfile ? wcsrchr(pfile, L'.') : NULL;
|
||||
|
||||
StrgSanitize(hstr);
|
||||
return pdot ? pdot : &wbuf[StrgGetLength(hstr)];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user