Commit 380fbe00 authored by Puetz Kevin A's avatar Puetz Kevin A Committed by Alexandre Julliard

oleaut32: Cut off only non-empty \[0-9]+$ resource-id in RegisterTypeLib.

Check if szFullPath ended with '\\' (was explicitly a directory). Signed-off-by: 's avatarKevin Puetz <PuetzKevinA@JohnDeere.com> Signed-off-by: 's avatarJacek Caban <jacek@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent aa4f8daf
......@@ -730,7 +730,7 @@ HRESULT WINAPI RegisterTypeLib(ITypeLib *ptlib, const WCHAR *szFullPath, const W
if ((disposition == REG_CREATED_NEW_KEY) && (szHelpDir == NULL)) {
szHelpDir = freeHelpDir = SysAllocString(szFullPath);
file_name = wcsrchr(szHelpDir, '\\');
if (file_name && file_name[0]) {
if (file_name && file_name[1]) {
/* possible remove a numeric \index (resource-id) */
WCHAR *end_ptr = file_name + 1;
while ('0' <= *end_ptr && *end_ptr <= '9') end_ptr++;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment