[Wine] Re: Problems with Pass4Sure's Network+ Demo

qwertymn wineforum-user at winehq.org
Tue Jul 28 15:53:04 CDT 2009


(found the 1st hack wasn't patchable as the 1st two lines were missing, so here it is again:)


> 
> diff --git a/dlls/kernel32/file.c b/dlls/kernel32/file.c
> index 9742964..ce046fa 100644
> --- a/dlls/kernel32/file.c
> +++ b/dlls/kernel32/file.c
> @@ -1304,6 +1304,9 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
>      static const WCHAR bkslashes_with_dotW[] = {'\\','\\','.','\\',0};
>      static const WCHAR coninW[] = {'C','O','N','I','N','$',0};
>      static const WCHAR conoutW[] = {'C','O','N','O','U','T','$',0};
> +    static const WCHAR n10W[] = {'C',':','\\','P','r','o','g','r','a','m',' ','F','i','l','e','s','\\','P','a','s','s','4'\
> +,'s','u','r','e',' ','T','e','s','t',' ','E','n','v','i','r','o','n','m','e','n','t','\\','n','1','0','-','0','0','3',' ',\
> +'D','E','M','O','\\','n','1','0','-','0','0','3',' ','D','E','M','O','.','e','x','e',0};
>      SECURITY_QUALITY_OF_SERVICE qos;
>  
>      static const UINT nt_disposition[5] =
> @@ -1323,7 +1326,7 @@ HANDLE WINAPI CreateFileW( LPCWSTR filename, DWORD access, DWORD sharing,
>          SetLastError( ERROR_PATH_NOT_FOUND );
>          return INVALID_HANDLE_VALUE;
>      }
> -
> +    if (0==strcmpW(filename,n10W)) {attributes=0; sharing = FILE_SHARE_READ | FILE_SHARE_WRITE;}
>      TRACE("%s %s%s%s%s%s%s creation %d attributes 0x%x\n", debugstr_w(filename),
>            (access & GENERIC_READ)?"GENERIC_READ ":"",
>            (access & GENERIC_WRITE)?"GENERIC_WRITE ":"",
> 








More information about the wine-users mailing list