Code of the Mounted (1935)
Two Mounties are murdered transferring a prisoner. So the Mounties send Wilson and Rogers to find the gang that did it. Wilson poses as a wanted criminal and Rogers as the Mountie chasing him. This lets Wilson make contact with the gang and the two start rounding them up. But then the outlaws find a month old newspaper showing the man Wilson is posing as had been executed.