mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-05 23:00:36 +00:00
Code was checking for 0 or HFILE_ERROR instead of negative error
values.
This commit is contained in:
parent
97d5abcd04
commit
50ea1101c8
|
@ -359,7 +359,7 @@ DWORD WINAPI VerInstallFileA(
|
|||
else pdest = destdir;
|
||||
sprintf(destfn,"%s\\%s",pdest,destfilename);
|
||||
hfsrc=LZOpenFileA(srcfn,&ofs,OF_READ);
|
||||
if (hfsrc==HFILE_ERROR)
|
||||
if (hfsrc < 0)
|
||||
return VIF_CANNOTREADSRC;
|
||||
sprintf(tmpfn,"%s\\%s",pdest,destfilename);
|
||||
tmplast=strlen(pdest)+1;
|
||||
|
|
|
@ -386,7 +386,7 @@ DWORD WINAPI GetFileResourceSize16( LPCSTR lpszFileName, LPCSTR lpszResType,
|
|||
lpszResId );
|
||||
|
||||
lzfd = LZOpenFileA( lpszFileName, &ofs, OF_READ );
|
||||
if ( !lzfd ) return 0;
|
||||
if ( lzfd < 0 ) return 0;
|
||||
|
||||
switch ( read_xx_header( lzfd ) )
|
||||
{
|
||||
|
@ -423,7 +423,7 @@ DWORD WINAPI GetFileResource16( LPCSTR lpszFileName, LPCSTR lpszResType,
|
|||
dwFileOffset, dwResLen, lpvData );
|
||||
|
||||
lzfd = LZOpenFileA( lpszFileName, &ofs, OF_READ );
|
||||
if ( lzfd == 0 ) return 0;
|
||||
if ( lzfd < 0 ) return 0;
|
||||
|
||||
if ( !dwFileOffset )
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue