X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fwin32%2FGenaDrive%2FTexScreen.cpp;h=1629dbc2120bdbc6c9872a312c9e1d84d9c4c039;hb=efcba75f8a730340df6c1b679a207723f98d1ee6;hp=45eeab73b2ed0eaf04983eae70d347af5dfbd6f4;hpb=cc68a136aa179a5f32fe40208371eb9c2b0aadae;p=picodrive.git diff --git a/platform/win32/GenaDrive/TexScreen.cpp b/platform/win32/GenaDrive/TexScreen.cpp index 45eeab7..1629dbc 100644 --- a/platform/win32/GenaDrive/TexScreen.cpp +++ b/platform/win32/GenaDrive/TexScreen.cpp @@ -86,7 +86,8 @@ int TexScreenLinear() int y=0,line=0; unsigned short *ps=NULL; - TexScreen->LockRect(0,&lock,NULL,0); if (lock.pBits==NULL) return 1; + TexScreen->LockRect(0,&lock,NULL,0); + if (lock.pBits==NULL) return 1; dest=(unsigned char *)lock.pBits; ps=EmuScreen;