Re: [resend] wineboot: fix installation of SFP protected files
Jan. 10, 2008
11:19 a.m.
Andrey Turkin <andrey.turkin(a)gmail.com> writes:
@@ -494,7 +494,11 @@ static int ProcessWindowsFileProtection(void) strcatW( dllcache, dllcacheW ); }
- find_handle = FindFirstFileW(dllcache,&finddata); + dllcache_wildcard = HeapAlloc(GetProcessHeap(), 0, strlenW( dllcache )*sizeof(WCHAR) + sizeof(wildcardW)); + strcpyW(dllcache_wildcard,dllcache); + strcatW(dllcache_wildcard,wildcardW); + + find_handle = FindFirstFileW( dllcache_wildcard, &finddata );
You could simply remove the wildcard from the end of string after FindFirstFile, no need to copy the whole string. -- Alexandre Julliard julliard(a)winehq.org
6650
Age (days ago)
6650
Last active (days ago)
0 comments
1 participants
participants (1)
-
Alexandre Julliard