Skip to content

Commit d568614

Browse files
committed
load_psm.c: move pragma pack() to correct place
1 parent e229e05 commit d568614

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/load_psm.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ typedef struct _PSMSAMPLE
8484
BYTE reserved6[19];
8585
} PSMSAMPLE;
8686

87+
#pragma pack()
88+
8789
void swap_PSMSAMPLE(PSMSAMPLE* p){
8890
p->smpid = bswapLE32(p->smpid);
8991
p->length = bswapLE32(p->length);
@@ -92,8 +94,6 @@ void swap_PSMSAMPLE(PSMSAMPLE* p){
9294
p->samplerate = bswapLE32(p->samplerate);
9395
}
9496

95-
#pragma pack()
96-
9797

9898
BOOL CSoundFile::ReadPSM(LPCBYTE lpStream, DWORD dwMemLength)
9999
//-----------------------------------------------------------

0 commit comments

Comments
 (0)